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

token_request method returning empty object when refreshing token #257

Open
cameronbourgeois opened this issue May 1, 2023 · 1 comment

Comments

@cameronbourgeois
Copy link

cameronbourgeois commented May 1, 2023

Recently we had a situation where the refresh_token_set method returned an empty object. This appears to happen when, for whatever reason, the response from the Faraday post request to /token in the token_request method has an empty or nil response body.

When refresh_token_set returned the empty object, we set this empty object in our database, thereby invalidating the connection.

I am curious as to what would cause the request to /token to return empty/nil in the first place, in order to work out what actions I need to take in my own codebase, and what to suggest could change (even just in the documentation) in this library to handle this situation.

@cameronbourgeois
Copy link
Author

I've submitted a support request to Xero to get more information on why there was an empty response.

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

1 participant