-
Notifications
You must be signed in to change notification settings - Fork 261
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
Gateway Time-out - getAccessToken #908
Comments
This may or may not help, but have you looked at the constructor of the AbstractProvider? You should be able to pass timeout as an option in there. |
Thank you. I've taken a look, but not quite sure how to pass through a new timeout value. |
By the looks, it's as simple as adding a |
Would you mind providing an example on how to do that with calcinai/xero-php please? |
Hi @olimortimer it’s not actually part of this library. The link I posted above was to the league/oauth2 library, which is extended and used here. I’m 100% sure on the suggestion, as it was based on skimming the code in that library. I’d recommend taking a proper look there to see which options/config is allowed to be passed in. |
I regularly receive timeouts from Xero when getting an access token, but can't see how to extend the timeout period - old issues mention a config file, but that doesn't seem to exist any now?
Around the same time as the above, I also receive the following;
The text was updated successfully, but these errors were encountered: