• Resolved evolver03

    (@evolver03)


    {
    “code”: “woocommerce_rest_cannot_view”,
    “message”: “Sorry, you cannot list resources.”,
    “data”: {
    “status”: 401
    }
    }I’m getting this problem since yesterday with all the projects using woocommerce plugin. I’m using 100% correct keys. So please resolve this rest API problem.

    The page I need help with: [log in to see the link]

Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Support RK a11n

    (@riaanknoetze)

    Hi there,

    This will likely require someone to log into that site to take a closer look, which means it’s not suitable for troubleshooting over a public forum.

    With that being said, which API version are you using and which authentication method is applied? Are you getting the same results when using https://www.postman.com/?

    Thread Starter evolver03

    (@evolver03)

    I’ve tried oAuth1 and also basic auth, I’m using the v3 version and yes I’m not getting any result over postman, even insomnia giving me the same result. And it’s not with one project actually my all the project’s rest APIs returning me the same 401 error.

    Plugin Support RK a11n

    (@riaanknoetze)

    Are all of those projects on the same server? Do they all have an active/valid SSL certificate?

    Thread Starter evolver03

    (@evolver03)

    No, they all are on different servers, and yes all of them have an active SSL certificate. I only work with the rest APIs so as I’ve said earlier that it was working fine before last I checked passed Friday but on Monday I started working on the same project and faced this issue then I changed the server but still bumped with the same 401 error. tried all the given suggestions on support but no result and then I started checking all the other projects and all of their rest API gave me an error.

    Plugin Support RK a11n

    (@riaanknoetze)

    Hmmm, what happens when you regenerate the API keys? The only thing I can think of that would cause 401 errors like that is incorrect API keys (more info at https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API#401-unauthorized and https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-https)

    Thread Starter evolver03

    (@evolver03)

    but I’ve checked twice thrice regarding keys and the keys are totally correct. If you want i can provide you the credentials you can check by yourself if you want to.

    Hi, we’re experiencing a similar issue. Suddenly yesterday Active Campaign is not able to use REST API and get Woocommerce data. Please report here if you find a solution.

    Thread Starter evolver03

    (@evolver03)

    Hi, Sorry mate still no result from anywhere but I’m searching on other platforms also who might face the same problem and the rest depends upon the support. If you find any solution please do report here.

    Seems that we managed to get it working. In webhooks we had duplicate actions and the newer ones were disabled and older ones active. Changing these solved the issue with Active Campaign.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hey @evolver03

    Can I ask if you have disabled the SSL certificate verification in Postman? https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API#common-connection-issues

    And to confirm – you are using this documentation for Auth over HTTP listed here – https://woocommerce.github.io/woocommerce-rest-api-docs/#authentication-over-http

    Thanks,

    Thread Starter evolver03

    (@evolver03)

    Yes, I’ve done everything, but the weird thing I’ve found is that I can only work with the 3.9.2 version of woocommerce, and if I try to install any other plugin, the rest APIs crashes straightway. Moreover, the updated version of woocommerce is also not working. Now, the biggest problem arises is that the same woocommerce cannot work with website and mobile applications, we can work either one of them. So, what’s the point of working with this plugin.

    dougaitken

    (@dougaitken)

    Automattic Happiness Engineer

    Hi @evolver03

    I can only work with the 3.9.2 version of woocommerce, and if I try to install any other plugin, the rest APIs crashes straightway.

    That sounds like you’re using a lower version of the API that is supported with the latest version of WooCommerce. Version 3 of the REST API is the version to use.

    Overall, it sounds like there is a conflict happening with different versions of plugins active on the site.

    Moreover, the updated version of woocommerce is also not working. Now, the biggest problem arises is that the same woocommerce cannot work with website and mobile applications, we can work either one of them

    I’m unsure of your setup but it sounds like there is definitely a conflict happening between the different parts of the site so a full conflict test on a staging site might be best – https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thanks,

    Plugin Support Tseten a11n

    (@tibetanitech)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘woocommerce rest api 401’ is closed to new replies.