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
Generating API access token throws error:0909006C:PEM #185
Comments
I did some more research and debugging and here are my results: indeed the error seems to come from
I applied the patch of that one line manually and was able to create access tokens again. So an update of If upgrading the packages accordingly and adjusting the code to the new API would be a solution for you, I could image creating a PR for this. |
Which specific line did you patch manually? |
This line here. Basically just replacing If you scroll up, you can see that the patch is included in So I guess upgrading this dependency should fix the problem. |
Hey! Thanks for getting in touch @R0Wi I believe issues with PHP8 / V8 API compatability were resolved in the most recent release, 8.3.0, as we merged this PR: salesagility/SuiteCRM#9965 When you get a moment, would you be able to give 8.3.0 a try and let us know if you are still having issues with the API? Thanks! |
Hey @johnM2401 I think salesagility/SuiteCRM#9965 did indeed fix the issue. We're using the As long as Debug output for PHP version:
|
When trying to create a new API access token, I get the following error message:
Preparations for API usage have been done like stated in
Issue
When calling the API access token endpoint
{{server}}/legacy/Api/access_token
via POST request, the server gives me an error 500 with the following JSON response:Expected Behavior
Server response 200 containing a valid access token
Actual Behavior
Response mentioned above. No furhter logs.
Possible Fix
The projects uses
"lcobucci/jwt": "3.3.3"
SuiteCRM-Core/composer.json
Line 49 in 91064df
which officially doesn't support PHP 8.0 (see https://packagist.org/packages/lcobucci/jwt#3.3.3). Updating this dependency might help but I'm not sure if this is the root cause. Like stated in some of the source below, this error seems to be related to the PHP version. Some mention that a downgrade to PHP 7.4 would help. Since this version is already deprecated, that's no option for me.
Steps to Reproduce
{{server}}/legacy/Api/access_token
with valid credentialsYour Environment
Links to similar issues
The text was updated successfully, but these errors were encountered: