Laravel-ShopifyAPI icon indicating copy to clipboard operation
Laravel-ShopifyAPI copied to clipboard

Client error: `POST https://micha-3.myshopify.com//admin/oauth/access_token` resulted in a `400 Bad Request` response: {"error":"invalid_request"}

Open ate090913 opened this issue 7 years ago • 2 comments

I have a private app. I include this at the .env file SHOPIFY_KEY = "your key" SHOPIFY_SECRET= "your secret " SHOPIFY_REDIRECT = " your redirect"

this is my code in my controller:

foo = Shopify::make($this->shop, $this->scopes); return $this->foo->redirect(); } public function getResponse(Request $request) { $this->getPermission(); $user = $this->foo->auth()->getUser(); return $this->foo->auth()->get('products.json', ['fields'=>'id,images,title']); } } When I navigate my sample/oauth/authorize error occur Client error: `POST https://sample-3.myshopify.com//admin/oauth/access_token` resulted in a `400 Bad Request` response: {"error":"invalid_request"}

ate090913 avatar Jun 18 '18 10:06 ate090913

I m facing same issue.

kumar1010sumit avatar Dec 12 '18 05:12 kumar1010sumit

Check the pull request I've just made https://github.com/BNMetrics/Laravel-ShopifyAPI/pull/17 it should fix the issue.

TomJacobsUK avatar Jan 03 '19 16:01 TomJacobsUK