Skip to content
This repository has been archived by the owner on Feb 14, 2025. It is now read-only.

user.email() return 204 and its response has no json content #25

Open
che-spotnana opened this issue Oct 31, 2024 · 1 comment
Open

Comments

@che-spotnana
Copy link

So that if you call this method, it will throw this exception:
*** requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"

Even the request is succeed.

@che-spotnana
Copy link
Author

/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/thoughtspot_rest_api_v1/tsrestapiv1.py(1594)user_email()
-> return response.json()
(Pdb) p response.json()
*** requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
(Pdb) p response
<Response [204]>
(Pdb) p response.text
''
(Pdb) p response.reason
''

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

No branches or pull requests

1 participant