Closed
Description
Issue summary
Before opening this issue, I have:
- Upgraded to the latest version of the package
shopify_app
version: 22.5- Ruby version: 3.2.2
- Operating system: macOS
- Set
log_level: :debug
in my configuration, if applicable - Found a reliable way to reproduce the problem that indicates it's a problem with the package
- Looked for similar issues in this repository
- Checked that this isn't an issue with a Shopify API
- If it is, please create a post in the Shopify community forums or report it to Shopify Partner Support
I'm building and embedded app which loads as expected. However, when I navigate in the app, I'm constantly being redirected to:
//patch_shopify_id_token?shopify-reload=<URL>
I have included ShopifyApp::EnsureHasSession
in my controller, and I'm setting the Bearer
token using app bridge as I navigate to other pages.
Expected behavior
I should be able to navigate to other pages.
Actual behavior
I'm redirected to //patch_shopify_id_token
which btw turns out blank.
Debug logs
12:01:13 web.1 | Started GET "/integration" for 85.244.162.79 at 2025-01-10 12:01:13 +0000
12:01:13 web.1 | Cannot render console from 85.244.162.79! Allowed networks: 127.0.0.0/127.255.255.255, ::1
12:01:13 web.1 | Processing by IntegrationController#index as HTML
12:01:13 web.1 | [ ShopifyApp | DEBUG | Shop Not Found ] Responding to invalid Shopify ID token: Missing Shopify ID Token
12:01:13 web.1 | [ ShopifyApp | DEBUG | Shop Not Found ] Redirecting to bounce page for patching Shopify ID token
12:01:13 web.1 | Redirected to https://discrete-open-boa.ngrok-free.app//patch_shopify_id_token?shopify-reload=%2Fintegration%3F
12:01:13 web.1 | Filter chain halted as :set_shop_origin rendered or redirected
12:01:13 web.1 | Completed 302 Found in 35ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.1ms)
12:01:13 web.1 |
12:01:13 web.1 |
12:01:13 web.1 | Started GET "//patch_shopify_id_token?shopify-reload=%2Fintegration%3F" for 85.244.162.79 at 2025-01-10 12:01:13 +0000
12:01:13 web.1 | Cannot render console from 85.244.162.79! Allowed networks: 127.0.0.0/127.255.255.255, ::1
12:01:13 web.1 | Processing by ShopifyApp::SessionsController#patch_shopify_id_token as HTML
12:01:13 web.1 | Parameters: {"shopify-reload"=>"/integration?"}
12:01:13 web.1 | Rendering layout /Users/danielfriis/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/shopify_app-22.5.0/app/views/shopify_app/layouts/app_bridge.html.erb
12:01:13 web.1 | Rendering /Users/danielfriis/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/shopify_app-22.5.0/app/views/shopify_app/sessions/patch_shopify_id_token.html.erb within shopify_app/layouts/app_bridge
12:01:13 web.1 | Rendered /Users/danielfriis/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/shopify_app-22.5.0/app/views/shopify_app/sessions/patch_shopify_id_token.html.erb within shopify_app/layouts/app_bridge (Duration: 0.1ms | GC: 0.0ms)
12:01:13 web.1 | Rendered layout /Users/danielfriis/.local/share/mise/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/shopify_app-22.5.0/app/views/shopify_app/layouts/app_bridge.html.erb (Duration: 0.5ms | GC: 0.0ms)
12:01:13 web.1 | Completed 200 OK in 33ms (Views: 0.9ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
12:01:13 web.1 |
12:01:13 web.1 |
And in the web console, I'm getting:
App Bridge Next: missing required configuration fields: shop
Metadata
Metadata
Assignees
Labels
No labels