calatonsystems / wc-api-java

Java wrapper for WooCommerce REST API
MIT License
98 stars 77 forks source link

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

Open hanweidong123 opened 5 years ago

hanweidong123 commented 5 years ago

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.

ngocnd0242 commented 4 years ago

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

itlakshmanan commented 4 years ago

Remove / at the end of url.

zhouhaibing commented 11 months ago

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