Oauth error invalid_request Could not find Shopify API application with api_key

Solved
abhinesh
New Member
3 1 0

My Api Key is correct, then why is it giving this error? Thank you for helping me.

 

the request is - https://abhineshs-test.myshopify.com/admin/oauth/authorize?client_id=%2291a4bf9a512597df976ff14b2d4d...

 

Capture.PNG

Accepted Solution (1)
abhinesh
New Member
3 1 0

This is an accepted solution.

This is solved by removing the quotes from the api key from get call url.

View solution in original post

Replies 4 (4)
abhinesh
New Member
3 1 0

This is an accepted solution.

This is solved by removing the quotes from the api key from get call url.

Olaoluwa
New Member
1 0 0

 

.env file

SHOPIFY_API_KEY='ae8ab39068d84c624bc3c0af3b51fa84'

initializers/shopify_app.rb

ShopifyApp.configure do |config|
  config.application_name = "My App"
  config.api_key = ENV['SHOPIFY_API_KEY']
  config.secret = ENV['SHOPIFY_API_SECRET']
  config.old_secret = ""
  config.scope = "read_orders, write_orders, read_products" # read_all_orders
  config.embedded_app = true
  config.after_authenticate_job = false
  config.api_version = "2019-10"
  config.session_repository = ShopifyApp::InMemorySessionStore
end

partner.shopify.com

Screenshot 2019-11-08 at 23.22.10.png











Error during installation of the app


Screenshot 2019-11-08 at 23.25.07.png

zainsadaqat
New Member
1 0 0

Where to remove quotes ?
i couldn't find get call url

Prajwal_Adhav
New Member
2 0 1

https://403d432e76bb.ngrok.io/?shop=sample-embedded-app-xyz.myshopify.com was my uri path it should be exact as u have stated in your app setup page

Prajwal_Adhav_0-1618400945472.png

Prajwal_Adhav_1-1618400960490.png

if this does not help check your api key are matching in app as well as your development environment (mine is Visual studio code)

Hope this information helps bcoz this is a pain in a**.