Hi jefrey1983,
API but when we try to access we get HTTP/1.1,
response = HTTP/1.1 401 Unauthorized
means that the request sent by the client could not be authenticated.
That makes sense since the next error is Consumer key is missing.
Can you try regenerating the API keys and see if that helps?
Thank you,
Thread Starter
jefrey
(@jefrey1983)
I have tried regenerating the key but it still doesnt work
when I visit the link directly A popup requesting username and password is showing up
I forgot to mention that I am accessing the url through https
tried v2 and v3 same result
-
This reply was modified 8 years, 1 month ago by
jefrey.
dougaitken
(@dougaitken)
Automattic Happiness Engineer
Hi Jefrey1983
when I visit the link directly A popup requesting username and password is showing up
This sounds like the site is behind a security process of some sort. Are you able to try with the site being public? Otherwise, you are going to need to include access credentials for the site in your API request.
It’s like going to someone’s house with a present but they’re not in. You can get to the front door, but you can’t give them a present for them to thank you. The API request is hitting the site but the security process is blocking it going any further to query WooCommerce.
You can confirm this for yourself if you set up a test site which is publically accessible.
Let me know how you get on!
Thanks,
Plugin Support
Hannah S.L.
(@fernashes)
Automattic Happiness Engineer
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.