wc-api-java icon indicating copy to clipboard operation
wc-api-java copied to clipboard

401 invalid signature when GET parameters contain unicode characters or SPACE

Open kientux opened this issue 7 years ago • 3 comments

If the parameters contain unicode characters (like Vietnamese chars) or space then it will result 401 invalid signature. For example: http://duylv.anhphuongisc.vn/wp-json/wc/v2/products/categories?search=sản phẩm

or even: http://duylv.anhphuongisc.vn/wp-json/wc/v2/products/categories?search=san pham

I tried the same URL in Postman with OAuth 1.0 and it works.

kientux avatar Jun 23 '18 09:06 kientux

Any solution? The filter[limit] isn't working for me

Penait1 avatar Nov 19 '18 09:11 Penait1

Will try to fix it soon.

omandryk avatar Nov 21 '18 22:11 omandryk

I found using already url encoded characters makes the signature valid, like so:

filter%5Blimit%5D

But it still only returns 10 results when I use -1 as limit

Penait1 avatar Nov 22 '18 09:11 Penait1