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

Error: Missing OAuth parameter oauth_consumer_key [woocommerce_rest_authentication_missing_parameter]

Open daniellaurel opened this issue 4 years ago • 2 comments

Im using Lavel 8.3 and "automattic/woocommerce": "^3.0",

If I fetch order from a specific error I get this error Error: Missing OAuth parameter oauth_consumer_key

Here is my code return response()->json($woocommerce->get('orders?customer=6')); Am I doing it wrong?

daniellaurel avatar Oct 30 '20 15:10 daniellaurel

I'm lost in the same issue too but as I found out it has something to do with the request URL being https or not. If yours is just http you are in the same boat as me. But there's a solution; it doesn't throw an error when you auth via OAuth 1.0 manually. But for some reason, the library doesn't do that. May be using OAuth 2.0. If you found anything helpful pls let me know.

nipunadodan avatar Nov 12 '20 09:11 nipunadodan

Same problem for me too. I am also getting same error for specific "orders/?customer=xx". I am getting response in postman, but in my code, some specific ids are showing this error.

jithu619 avatar Nov 12 '20 11:11 jithu619