Issue with authentication consumer key or consumer secret invalid
See original GitHub issueI’m creating credentials using the endpoint /wc-auth/v1/authorize with scope=read_write most times the consumer key and secret that I get are valid, but a couple of times I get consumer key or consumer secrets that are invalid when I try to use them later in code like this:
wcapi = API(
url= shop_url,
consumer_key= key,
consumer_secret= secret
)
response = wcapi.get("orders?page=1")
# Then response.text is {"errors":[{"code":"woocommerce_api_authentication_error","message":"Consumer Secret is invalid"}]}
# or {"errors":[{"code":"woocommerce_api_authentication_error","message":"Consumer Key is invalid"}]}
Has this issue been detected yet? Is it related to the python wrapper or woocommerce plugin?
Issue Analytics
- State:
- Created 8 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Zapier 4.0 Consumer Key & Secret Not Working - Gravity Forms
I've copied the Consumer Key & Secret directly from Gravity Forms, but it still won't connect when I try to authenticate it in...
Read more >"Invalid client ID or secret" error when connecting to OAuth ...
Describes the cause of "Invalid client ID or secret" error when connecting to Precisely's OAuth Token Service This can be caused by an...
Read more >Cannot find consumer key and consumer secret to connect ...
I finally solved my problem. I managed to create a new app, and I noticed that consumer key and secret and displayed after...
Read more >What do I do if my consumer key is invalid? - Printful Help Center
Check if Consumer Key and Consumer Secret in your Woo admin panel under WooCommerce → Settings → API → Keys/Apps match Identity and...
Read more >or user locked out.” while trying to connect to Salesforce from ...
... Failed: Invalid Refresh Token , Consumer Key , Consumer Secret; ... This issue happens, when the user selects Connection Type as OAuth ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yes, of course, since can be an error in the nonce, here:
https://github.com/woothemes/wc-api-python/blob/master/woocommerce/oauth.py#L53-L57
@claudiosanches, I’m actually running into this now. For some reason when I use http:// in the store_url it’s working fine, but when I use https:// it’s telling me the secret is invalid.
You mentioned this means there’s a problem at the server. Can you elaborate on that? I’m not sure what to tell my server guy…??