• hi
    i am getting rest api 401 errors and i cant figure out why. i tried changing my nameservers to google dns 8.8.8.8
    i have the correct keys and admin permission for them
    where can i see some advance logs so i can debug and figure out what is happening.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @ariban99,

    With the WooCommerce REST API, 401 Unauthorized errors usually indicate your requests are not being authenticated. These will usually look something like this below.

    “code”: “woocommerce_rest_cannot_view”,
    “message”: “Sorry, you cannot view this resource.”,
    “data”: {
    “status”: 401

    With regards to the WooCommerce REST API, access codes for that can be set from inside your WooCommerce site by following this documentaiton.

    https://docs.woocommerce.com/document/woocommerce-rest-api/

    For the developer level documentation, you can find located on this site below and this covers authentication and all of the endpoints and parameters which can be accessed via the REST API.

    https://woocommerce.github.io/woocommerce-rest-api-docs/#introduction

    To test API calls, there is some information on testing API calls using an App called Postman and I’ve referenced that for you below too.

    https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API

    I hope this helps.

    Thread Starter ariban99

    (@ariban99)

    how i have download postman, but how do i find the reason for the 401 in postman, i know its not the credentials, i created new ones and copy and paste them but still get the same error.
    my site is https:// so no issues there.
    how do i debug or see logs as to WHY the 401 is happenning. either in postman or elsewhere?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘advance woocommerce logs’ is closed to new replies.