calatonsystems/wc-api-java

'java.lang.RuntimeException: Can't parse retrieved object: {code=woocommerce_rest_authentication_error, message =Invalid signature - provided signature does not match., data={status=401}}'

hanweidong123 opened this issue · 3 comments

I haven't touched oAuth1.0a before, I used the correct secret key and secret in the apiGetAllProductsTest method in the test unit, and the request returns: 'java.lang.RuntimeException: Can't parse retrieved object: {code=woocommerce_rest_authentication_error, message =Invalid signature - provided signature does not match., data={status=401}}'
I don't know what it is, please give me some advice.

@hanweidong123 I faced same as your issue, Have you fixed it? Could you help me to fix it?

Remove / at the end of url.

image
when create signbase string, the key and value is process urlencode, then sign with secretKey,so your url the request paramter also use urlencode param. it is bug for it