API not connecting from python

API not connecting with python

Kindly provide more information with a screen shot.

Facing this issue since today morning:

historical,alice = login(61…9)
File “C:\Users\…t.py”, line 280, in login
alice = AliceBlue(username =str(user), session_id = session_id,master_contracts_to_download=[‘NSE’,‘NFO’])
File “C:\Users\naveen\AppData\Roaming\Python\Python39\site-packages\alice_blue\alice_blue.py”, line 164, in init
self.__get_master_contract(e)
File “C:\Users\naveen\AppData\Roaming\Python\Python39\site-packages\alice_blue\alice_blue.py”, line 951, in __get_master_contract
body = self.__api_call_helper(‘master_contract’, Requests.GET, params={‘exchange’: exchange})
File “C:\Users\naveen\AppData\Roaming\Python\Python39\site-packages\alice_blue\alice_blue.py”, line 1006, in __api_call_helper
return response.json()
File “C:\ProgramData\Anaconda3\lib\site-packages\requests\models.py”, line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Unterminated string starting at: line 1 column 13706371 (char 13706370)

It worked fine till yesterday it looked like… please help.

Any help on this please

Kindly find our GitHub library in the given below link.

Kindly find our youtube tutorial in the given link below

1 Like


above is the message I get when i use print session id code . Pre note: I login into my aliceblue account on a3.aliceblueonline.com before executing this code, I have also gone through the video, pls tell me what I am missing

Its working now … thks