0

Summary

I have been working on connecting Magento 2 to Shipworks (3rd party shipping software) via their module and Rest API. Both attempts have returned an error saying

The remote server returned an error: (401) Unauthorized.

I've worked with the Shipworks support and concluded that the issue is not with their software but with my setup. Additionally I have PayPal Pro setup to allow me to take Debit/Credit card on the website without opening their virtual terminal and it is also returning an unauthorized message.

All the users currently have full admin privileges. The server has the default suggested permissions 755-folders 644-files. There are no server errors or exception or system log errors. When the error was traced in Shipworks it returned

{"message":"The consumer isn't authorized to access %resources.","parameters":{"resources":"Magento_Sales::actions_view"},"trace":"#0 /home/buyglasswoodstov/public_html/vendor/magento/module-webapi/Controller/Rest/RequestValidator.php(68):

What could be causing these authentication issues? I've been researching and working on this issue for 3 weeks.

Preconditions

Magento 2.3.1, Php 7.2

3
  • Is there any .htaccess password or IP protection enabled on mageno 2 store ? – Dhaval Solanki Jul 17 '19 at 5:22
  • I had my server host whitelist paypal IPs and they didn't see it blocking any other IPs. Additionally I have tried erasing the htaccess file in the root folder completely and I still received the error – Josiah Jul 17 '19 at 13:15
  • @Josiah Any conclusion ob this issue? – Jack Jun 17 '20 at 6:43
0

PayPal Pro moved to a new system. If you have an old account, they will have to setup a new account. This fixed the authentication issues for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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