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
Yields the error : AttributeError: 'HTTPResponse' object has no attribute 'body'. Did you mean: '_body'?
Expected behavior
It should throw an error the SdkException in pinterest.utils.refresh_access_token.get_new_access_token with b'{"code":283,"message":"The authorization grant is invalid"}'
Screenshots
Additional Details (please complete the following information):
OS and Version: Linux
SDK Version v0.2.1
Additional Context
The text was updated successfully, but these errors were encountered:
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Executing the following code where the refresh token is invalid or has the wrong grants
Yields the error :
AttributeError: 'HTTPResponse' object has no attribute 'body'. Did you mean: '_body'?
Expected behavior
It should throw an error the SdkException in pinterest.utils.refresh_access_token.get_new_access_token with
b'{"code":283,"message":"The authorization grant is invalid"}'
Screenshots
Additional Details (please complete the following information):
Additional Context
The text was updated successfully, but these errors were encountered: