Shopify app stuck in error page while webhook initialization.

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.

Seems like this errors came from shopify app gem file

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.

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

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