Questions and discussions about using the Shopify CLI and Shopify-built libraries.
I normally run this snippet of code when I want to take a user from an embedded app, escape it, and redirect them to the authorization screen to approve new app scopes.
app.featuresAvailable().then((res) => console.error(res));
redirect.dispatch(Redirect.Action.REMOTE, redirectUri);
But any remote redirects are now failing with a Shopify internal server error.
The url that's shown in the admin is correct though.
https://admin.shopify.com/store/via-order-editing/oauth/authorize?client_id=c8d4cf1ecf2233d27b415632...
If I refresh the Shopify admin keeping the exact same url it properly redirects me to the authorization screen.
This only started happening recently. I'm using the same app bridge to embedded the frame, creating no new contexts, and I'm on the latest version of Polaris. Are there any explicit reasons why Shopify is showing internal server errors starting today?
Request URL: https://admin.shopify.com/store/via-order-editing/oauth/authorize?client_id=c8d4cf1ecf2233d27b415632d3354c6b&scope=read_orders%2Cwrite_orders%2Cread_order_edits%2Cwrite_order_edits%2Cread_customers%2Cread_products%2Cread_merchant_managed_fulfillment_orders%2Cwrite_merchant_managed_fulfillment_orders%2Cread_assigned_fulfillment_orders%2Cwrite_assigned_fulfillment_orders%2Cwrite_draft_orders%2Cread_gift_cards&redirect_uri=https%3A%2F%2Fa23c-184-175-35-15.ngrok.io%2Fapi%2Fauth%2Fcallback&state=1679851660330 Request Method: GET Status Code: 302 Remote Address: 23.227.38.33:443 Referrer Policy: no-referrer alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400 cache-control: no-store cf-cache-status: BYPASS cf-ray: 7ae11b0e9ba7366a-YYZ content-security-policy: default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=authorize&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Foauth&source%5Bsection%5D=admin&source%5Buuid%5D=897e9621-f344-4685-a663-ccacfc9ae96a content-type: text/html; charset=utf-8 date: Sun, 26 Mar 2023 17:27:40 GMT http_x_shopify_shop_api_call_limit: 1/400 location: https://via-order-editing.myshopify.com/admin/oauth/request_grant?access_change_uuid=27e607f2-f2ed-4310-b5c2-654678ca1ed6&client_id=c8d4cf1ecf2233d27b415632d3354c6b nel: {"success_fraction":0.01,"report_to":"cf-nel","max_age":604800} referrer-policy: origin-when-cross-origin report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=TWzKMiS63JipU8FvoLxLHb%2BYfa%2BHXVfS9PbjtGAhLgUzE%2BaysuGpyMiO1uNnTmJ%2Fab3Qgzx12ymvD2jWy3lHwk5uikS%2FlYqTW6ejZpXk2aK0Y78lmPIKiqnDev0e6M99qw9t"}],"group":"cf-nel","max_age":604800} server: cloudflare server-timing: cfRequestDuration;dur=398.000002 set-cookie: iid=1431cb05; path=/admin; secure; httponly strict-transport-security: max-age=15552000; includeSubDomains; preload vary: Accept-Encoding x-content-type-options: nosniff x-dc: gcp-us-central1,gcp-us-east1,gcp-us-east1,gcp-us-east1,gcp-us-east1 x-download-options: noopen x-downstream-status: 302 x-frame-options: DENY x-permitted-cross-domain-policies: none x-request-id: 897e9621-f344-4685-a663-ccacfc9ae96a x-shardid: 293 x-shopid: 73251127590 x-shopify-shop-api-call-limit: 1/400 x-shopify-stage: production x-sorting-hat-podid: -1 x-sorting-hat-podid: 293 x-sorting-hat-shopid: 73251127590 x-stats-apiclientid: 1830279 x-stats-apipermissionid: 471397826854 x-stats-userid: 93793550630 x-storefront-renderer-rendered: 1 x-xss-protection: 1; mode=block; report=/xss-report?source%5Baction%5D=authorize&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Foauth&source%5Bsection%5D=admin&source%5Buuid%5D=897e9621-f344-4685-a663-ccacfc9ae96a