thoughtspot / thoughtspot_rest_api_v1_python

Python implementations of ThoughtSpot REST APIs V1 and V2
Other
3 stars 6 forks source link

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

Open che-spotnana opened 4 hours ago

che-spotnana commented 4 hours ago

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 commented 4 hours ago

/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 ''