Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Hotel Booking Mobile App Exception: Request failed with status: 401
- This topic has 13 replies, 7 voices, and was last updated 1 month, 1 week ago by J. Davis.
- AuthorPosts
- May 12, 2022 at 2:39 am #1302445Alex MParticipant
If you get an “Exception: Request failed with status: 401” error while working with mobile app along with “The authorization header is missing” warning in Tools ->Site Health in your dashboard, then possible solution could be adding the following line of code to your .htaccess file:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
For more details visit https://digwp.com/2021/01/fix-site-health-error-authorization-header-missing/
June 9, 2022 at 7:20 am #1315555Ondrej RihaParticipantHi, I´m still having trouble with “Exception: Request failed with status: 401”.
– Site Health is OK.
– in .htaccess I have “RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]”Website: https://www.myhomeresidence.cz
The website is under construction.
Where is problem?
June 14, 2022 at 12:22 pm #1317612J. DavisKeymasterHi Ondrej,
Could you please turn off the under construction mode and try to connect with application again?
best regards,
J. DavisJune 14, 2022 at 11:29 pm #1317758Ondrej RihaParticipantHi J. Davis,
I tried disabling all plugins except Hotel Booking.
When I try to connect with application, it returns error 401.Plugin version is 4.2.5 and mobile application 1.0.2 build 6
best regards,
OndrejJune 16, 2022 at 6:18 am #1318340Andre FloresModeratorHello Ondrej,
Kindly submit a request to our Help Desk providing temporary access to your WordPress dashboard, so we take a closer look at the issue.
Best regards,
Andre FloresAugust 9, 2022 at 5:06 am #1338844RobertParticipantI’m having the same issue as Ondrej. Site health all fine and code added. It worked for a short period of time but now I get the 401 issue again. Were there any other suggestions from Ondrej’s support request?
August 10, 2022 at 12:27 am #1339271Andre FloresModeratorHello Robert,
We have not received the support request from Ondrej, as far as I know. First of all, you should make sure the website is not in the maintenance mode, there are no firewalls on the server blocking external requests and your API key is set to Read/Write permissions. If the issue persists, provide me with temporary access to your WordPress dashboard in a private reply, so I take a closer look at it.
Regards,
AndreAugust 23, 2022 at 4:52 am #1344475RobertParticipantThis reply has been marked as private.September 6, 2022 at 2:19 am #1349837J. DavisKeymasterHi Robert,
You may submit a private ticket referring to this topic at https://support.motopress.com
best regards,
J. DavisNovember 14, 2022 at 11:14 am #1376505Verin MariusParticipantThis reply has been marked as private.November 14, 2022 at 11:29 am #1376508Verin MariusParticipantI encounter the following error message:Exception: Request failed with status: 401
For information the health of my site is very good and my site is not in maintenanceNovember 15, 2022 at 12:17 am #1376666J. DavisKeymasterHi Verin,
Thanks for your question. Could you check the .htaccess file in the root folder of your site and make sure there is added the following line:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
If this does not help or you need our assistance to edit the .htaccess file please submit a request to our support team. Thanks.best regards,
John DavisOctober 7, 2024 at 10:58 pm #1678071Rhuphylla AbdullahParticipantHi, apologies … I do not know how to start a new topic. I am trying to sync my websites with Hosthub using Motopress as recommended by Hosthub. It works perfectly with one but the 2nd one displays this error ..
{“code”:”mphb_rest_cannot_view”,”message”:”Sorry, you cannot list resources.”,”data”:{“status”:401}}
I have tried google but no luck, appreciate any advice. Thank you.
October 10, 2024 at 1:03 am #1679169J. DavisKeymasterHi, Did you try the solutions suggested in the previous replies above? If this does not help or you need our assistance you can submit a ticket to our support team
- AuthorPosts
- You must be logged in to reply to this topic.