API Calls Don’t Work After Updating Magento to 2.2.5 Version

Jul 25, 20181265Alex Simonchik
API Calls Don’t Work After Updating Magento to 2.2.5 Version

We have recently updated the Magento platform from version 2.2.3 to 2.2.5 to one of our clients and faced a painstaking issue: every API call return us an error message: Consumer is not authorized to access %resources.

The full stack trace of error is:

We looked for the solution to this issue on GitHub, but couldn’t find it there, so we began the debugging process. What caused this issue was the method \Magento\Webapi\Model\Authorization\TokenUserContext::isTokenExpired.

As soon as we found the cause of the issue we checked this file on a 2.2-develop branch on GitHub and found a patch. After that we found an issue on GitHub:

Since this issue is relevant to the currently available version of Magento (the current version now is 2.2.5), I hope you will find this article helpful.



Post a new comment

top
BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *