-
Notifications
You must be signed in to change notification settings - Fork 20
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
Getting invalid_code Error. Token not refreshing. #14
Comments
I found out If I create a new grant token and run zoho:install it works until access_token expires. And then it wont refresh using refresh_token. So I have to create another grant_token and do the whole process again. |
What is your php version? |
Php version is 8.2.0 |
I think the problem is caused by PHP 8.2, so please try the package with PHP 8.1. |
There is a problem with the core SDK by Zoho not being compatible with PHP 8.2 |
I am using php 8.1 and it is not working. When I look at my local environment which is using the SelfClient I see a refresh token generated. When I used my Server-Client on my local, it did not log a refresh token. When I look at the logs on my production server ( which uses the Server-Client only ) it also does not log a refresh token. So basically the Server client only ever lasts 1 hour until the token expires then it needs to be refreshed |
It would really help to understand where within the packages authentication process it could be checked to see if a refresh token is being passed and accidentally left out, or if theres a way to insert another call to grab one https://www.zoho.com/accounts/protocol/oauth/web-apps/authorization.html Apparently it 'should' be getting passed back because the grant token url is set with the correct parameters, not sure where to go with this |
This is happening to us too. It only happens when we use the Zoho Code Sample that causes the error to occur:
Logged Exception:
|
has this been resolved? i'm experiencing the same. |
So i have just catching a refreshToken - inside txt file - but it not works, grantToken or accessToken not refreshed |
That problem was infected only when i use serverside client on the zoho. make self client generate token. copy-paste to ZOHO_TOKEN and make |
I have setup a server side Client in zoho and set everything up. Everything was done Successfully but after I add my code generated by php artisan zoho:authentication following this link in ENV it genrates a empty file after php artisan zoho:grant and when I try to get data from ZOHO it gives me invalid_code. Screen Shots are attached. And few days back it was genrating refresh token and everything perfectly.
The text was updated successfully, but these errors were encountered: