Exception: Request failed with status: 401

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1302445
    Alex M
    Participant

    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/

    #1315555
    Ondrej Riha
    Participant

    Hi, 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?

    #1317612
    J. Davis
    Keymaster

    Hi Ondrej,

    Could you please turn off the under construction mode and try to connect with application again?

    best regards,
    J. Davis

    #1317758
    Ondrej Riha
    Participant

    Hi 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,
    Ondrej

    #1318340
    Andre Flores
    Moderator

    Hello 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 Flores

    #1338844
    Robert
    Participant

    I’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?

    #1339271
    Andre Flores
    Moderator

    Hello 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,
    Andre

    #1344475
    Robert
    Participant
    This reply has been marked as private.
    #1349837
    J. Davis
    Keymaster

    Hi Robert,

    You may submit a private ticket referring to this topic at https://support.motopress.com

    best regards,
    J. Davis

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.