-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to get session ID. Getting json.decoder.JSONDecodeError error #516
Comments
i see same error how to solve it |
I'm also seeing the same error. Any fix available ?
|
Facing the same issue as well. |
I am also getting same error, is there any way to resolve it? |
When I executed AliceBlue.login_and_get_sessionID() getting below error.
raceback (most recent call last):
File "C:\Python312\Lib\site-packages\requests\models.py", line 972, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\json\decoder.py", line 338, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\json\decoder.py", line 356, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "E:\Viraj Imp\Share Market\Algo\TradingGreeks\generation.py", line 23, in
session_id = AliceBlue.login_and_get_sessionID(username="960159",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\alice_blue\alice_blue.py", line 216, in login_and_get_sessionID
isAuthorized = r.json()['isAuthorized']
^^^^^^^^
File "C:\Python312\Lib\site-packages\requests\models.py", line 976, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: