• Resolved tommyd17

    (@tommyd17)


    Hi,

    I want to enable an API connection and I am currently testing it via Postman. My server is running on apache with nginx as reverse-proxy.

    Woocommerce is returning:
    {
    “code”: “woocommerce_rest_cannot_view”,
    “message”: “Entschuldigung, es k?nnen keine Ressourcen aufgelistet werden.”,
    “data”: {
    “status”: 401
    }
    }

    On other servers (without nginx as reverse-proxy) i add
    SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
    to my .htaccess and it is working in most cases.

    I now added this code to my .htaccess and the 401 error is still returned.

    Any idea how to make it work?

    PLEASE NOTE THAT MY CONSUMER KEY AND CONSUMER SECRET IS 100% CORRECT

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tommyd17

    (@tommyd17)

    Can anyone help?

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @tommyd17

    It sounds like there is a server-level problem with access here since you mentioned that:

    On other servers (without nginx as reverse-proxy)…and it is working in most cases.

    This to me indicates an access-related problem rather than WooCommerce.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WooCommerce REST API Error 401’ is closed to new replies.