cancel
Showing results for 
Search instead for 
Did you mean: 

oauth_signature invalid error while using Magento Rest API with GET filters

oauth_signature invalid error while using Magento Rest API with GET filters

I'm having a hard time fetching orders from Magento REST API when I use its GET filters likehttp://localhost/magento/api/rest/orders/?filter[1][attribute]=entity_id&filter[1][gt]=70&page=1&lim...

It is giving a "error":[{"code":401,"message":"oauth_problem=signature_invalid"}]

 

When I try hitting the same API endpoint using a REST Client like Postman, I'm getting back the desired results JSON.

I suspect the square brackets in the filter query might be causing a problem in generating a Oauth signature. All the endpoints without GET filters are working fine.

 

I'm using the Request node module to make the GET request with the oauth headers.

 

Is there any fix to avoid the signaturre invalid error?

1 REPLY 1

Re: oauth_signature invalid error while using Magento Rest API with GET filters

This is haunting me. Did you make any progress?