I've recently updated my Magento 2.3.4. Now getting 500 error for all the Magento REST API being used on checkout, cart, or any other pages.

I've checked for System log but not getting anything related to error except 500error on browser network. Please suggest the solutions If someone has encountered the same issue.

Below is the error screenshot

enter image description here

  • 1
    you need to show us the error you have: you can find this error in your webserver error log Jun 30, 2020 at 15:59
  • It is Authorization Circular dependency issue on executing the rest API Jul 1, 2020 at 5:16

1 Answer 1

Thanks but I found the answer it, was Mirasvit extension di.xml file, which was causing the issue.

Below is the code which was causing the issue so, I've commented it for now and my website is working fine.

<type name="Magento\Authorization\Model\CompositeUserContext">
            <argument name="userContexts" xsi:type="array">
                <item name="giftRegistrantUserContext" xsi:type="array">
                    <item name="type" xsi:type="object">Mirasvit\Giftr\Model\Authorization\GiftRegistrantSessionUserContext</item>
                    <item name="sortOrder" xsi:type="string">50</item>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.