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

OAuthException: unsupported_grant_type #4

Open
14nd90 opened this issue Aug 30, 2021 · 0 comments
Open

OAuthException: unsupported_grant_type #4

14nd90 opened this issue Aug 30, 2021 · 0 comments

Comments

@14nd90
Copy link

14nd90 commented Aug 30, 2021

Using the example provided, everything worked fine for exactly 3 months from setup.

Then, this error started happening:

[30-Aug-2021 14:06:02 UTC] PHP Fatal error: Uncaught Automile\Sdk\OAuth\OAuthException: unsupported_grant_type in [path]/vendor/automile/automile-php/lib/OAuth/Http.php:106
Stack trace:
#0 [path]/vendor/automile/automile-php/lib/AutomileClient.php(182): Automile\Sdk\OAuth\Http->refreshToken(Object(Automile\Sdk\Models\User), Object(Automile\Sdk\OAuth\Token))
#1 [path]/vendor/automile/automile-php/lib/AutomileClient.php(102): Automile\Sdk\AutomileClient->_refreshToken(Object(Automile\Sdk\Models\User), Object(Automile\Sdk\OAuth\Token))
#2 [path]/vendor/automile/automile-php/lib/AutomileClient.php(139): Automile\Sdk\AutomileClient->__construct(Object(Automile\Sdk\OAuth\Token))
#3 [path]/automile.php(35): Automile\Sdk\AutomileClient::fromSavedToken(Object(Automile\Sdk\Storage\Filesystem))
#4 {main}
thrown in [path]/vendor/automile/automile-php/lib/OAuth/Http.php on line 106

By removing the automile-token.json file and letting it regenerate this fixes the issue, but I presume it will happen again in 3 months time.

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