You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, Thank you so much for creating this library and giving people like me a head start. While i was testing my script that's using this library, i often run into issues even after updating this to 0.3.2 as per #131.
I'm initializing the client just as recommended with json file path. Is there anything that i'm doing incorrectly? Appreciate your help on this.
Error 1:
td.exceptions.TknExpError: { "error":"The access token being passed has expired or is invalid."
Error 1- Trace
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 1847, in place_order
return self._make_request(method='post', endpoint=endpoint, mode='json', json=order, order_details=True)
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 581, in _make_request
raise TknExpError(message=response.text)
td.exceptions.TknExpError:
{
"error":"The access token being passed has expired or is invalid."
Hi @areed1192,
Firstly, Thank you so much for creating this library and giving people like me a head start. While i was testing my script that's using this library, i often run into issues even after updating this to 0.3.2 as per #131.
I'm initializing the client just as recommended with json file path. Is there anything that i'm doing incorrectly? Appreciate your help on this.
Error 1:
Error 1- Trace
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 1847, in place_order
return self._make_request(method='post', endpoint=endpoint, mode='json', json=order, order_details=True)
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 581, in _make_request
raise TknExpError(message=response.text)
td.exceptions.TknExpError:
{
"error":"The access token being passed has expired or is invalid."
Error 2:
Error 2 - Trace:
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 1847, in place_order
return self._make_request(method='post', endpoint=endpoint, mode='json', json=order, order_details=True)
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 524, in _make_request
self._token_validation()
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 487, in _token_validation
self.grab_refresh_token()
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 358, in grab_refresh_token
token_response = self._make_request(
File "C:\Users\tejka\AppData\Local\Programs\Python\Python38\lib\site-packages\td\client.py", line 579, in _make_request
raise NotNulError(message=response.text)
td.exceptions.NotNulError: {
"error" : "invalid_request"
The text was updated successfully, but these errors were encountered: