Skip to content
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

Issue with JSON format while GENERATING SESSION #150

Open
pjsaravanan opened this issue Oct 11, 2024 · 2 comments
Open

Issue with JSON format while GENERATING SESSION #150

pjsaravanan opened this issue Oct 11, 2024 · 2 comments

Comments

@pjsaravanan
Copy link

May I know why all of a sudden I am getting the JSON error while generating session

secret_key = "....."
token="...."
cn.generate_session(secret_key, token )
Traceback (most recent call last):
File "F:\Program Files\Python311\dashapp\Lib\site-packages\requests\models.py", line 974, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Program Files\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Program Files\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Program Files\Python311\Lib\json\decoder.py", line 355, 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 "F:\Program Files\Python311\dashapp\Lib\site-packages\breeze_connect\breeze_connect.py", line 797, in api_util
json_data = response.json()
^^^^^^^^^^^^^^^
File "F:\Program Files\Python311\dashapp\Lib\site-packages\requests\models.py", line 978, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "", line 1, in
File "F:\Program Files\Python311\dashapp\Lib\site-packages\breeze_connect\breeze_connect.py", line 858, in generate_session
self.api_util()
File "F:\Program Files\Python311\dashapp\Lib\site-packages\breeze_connect\breeze_connect.py", line 816, in api_util
raise Exception("Invalid JSON format in API response")
Exception: Invalid JSON format in API response

@Idirect-Tech
Copy link
Owner

Idirect-Tech commented Oct 11, 2024 via email

@Idirect-Tech
Copy link
Owner

Idirect-Tech commented Dec 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants