question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

401 error - Invalid signature - provided signature does not match

See original GitHub issue

Hi,

Following error gets returned when calling an endpoint.

{
code: 'woocommerce_rest_authentication_error',
message: 'Invalid signature - provided signature does not match.',
data: { status: 401 }
}

I am providing valid consumerKey and consumerSecret values. Can someone take a look?

Thanks!

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
yorickkooy20commented, Apr 30, 2020

I had the same error. Fixed this by setting the Site Address in (Wordpress general settings) the same as WordPress Address

6reactions
martin-gvcommented, Feb 16, 2020

This worked for me: add queryStringAuth: true in the config. Like this:

const api = new WooCommerceRestApi({
  url: "http://example.com",
  consumerKey: "ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  consumerSecret: "cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  queryStringAuth: true
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

Woocommerce REST API Status: 401 - Invalid signature
As the error is self explanatory. This is clearly an authentication issue. It's clearly mention in the documentation. Over HTTPS.
Read more >
Problem with Rest API's in woocommerce - WordPress.org
A Invalid signature – provided signature does not match message returned from the WooCommerce REST API indicates an authentication misconfiguration. This ...
Read more >
Why do I receive a "401 Signature Invalid" response when ...
The signature will always be considered invalid if the time is incorrect on the server you're using to generate the Authorization header. Please...
Read more >
401 Error - Invalid Signature - VitalSource Support
Users will see this error when during the initial LMS configuration with VitalSource the LTI Secret was incorrectly entered, there are too many ......
Read more >
Wordpress > 0Auth 1.0 > Invalid signature > 401 - Gravity Forms
API access Issues Can someone help me figure out why I am receiving ... "message": "Invalid signature - provided signature does not match....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found