Shopify app stuck in error page while webhook initialization.

Stefan18
New Member
1 0 0

Hi

I am working on rails shopify app (v16.1.0), and added webhooks.

 

// config/initializers/shopify_app.rb

ShopifyApp.configure do |config|
   ....
  config.webhooks = [
    {topic: "orders/create", address: "#{ENV['APP_HOST']}/webhooks/orders_create", format: "json"},
  ]
 ...
end

 


But I an experiencing and stuck on error screen while installing the app.

Capture.PNG
Seems like this errors came from  shopify app gem file
https://github.com/Shopify/shopify_app/blob/master/app/controllers/shopify_app/callback_controller.r...

For temp solution, I had to create my own controller with the same namespace and paste this file.
And replaced shop_session&.token || user_session.token to token

But I don't think if this is my fault from webhook initialization or gem itself.

Please let me know if you see any issues.

Thank you.

0 Likes
anquinn
New Member
1 0 0

I'm having the same issue after creating an app with the CLI. Dif you ever figure out a solution?

0 Likes
arhumali07
Tourist
9 0 0

having same issue. anyone found a solution? please let me know. thank you

0 Likes