I am creating an app that integrates a pim system through their api with a Shopify store. It’s a one way import from pim to Shopify with auto sync. I’m partly finished and it’s working fine in development. I have deployed the app to fly.io
when I run an import I get an invalid session error. If I click import again it normally works on second or third click. Anyone know how to fix this? I have not changed any settings regarding database or proxy. It’s just from the default remix template. Here is the error: │ [shopify-app/INFO] Authenticating admin request
16:27:15 │ remix │ [shopify-app/INFO] Authenticating admin request
16:27:15 │ remix │ [shopify-app/INFO] No valid session found
16:27:15 │ remix │ [shopify-app/INFO] Requesting offline access token
16:27:15 │ remix │ [shopify-app/INFO] No valid session found
16:27:15 │ remix │ [shopify-app/INFO] Requesting offline access token
16:27:15 │ remix │ error Response {
16:27:15 │ remix │ size: 0,
16:27:15 │ remix │ [Symbol(Body internals)]: {
16:27:15 │ remix │ body: null,
16:27:15 │ remix │ type: null,
16:27:15 │ remix │ size: 0,
16:27:15 │ remix │ boundary: null,
16:27:15 │ remix │ disturbed: false,
16:27:15 │ remix │ error: null
16:27:15 │ remix │ },
16:27:15 │ remix │ [Symbol(Response internals)]: {
16:27:15 │ remix │ url: undefined,
16:27:15 │ remix │ status: 500,
16:27:15 │ remix │ statusText: ‘Internal Server Error’,
16:27:15 │ remix │ headers: {},
16:27:15 │ remix │ counter: 0,
16:27:15 │ remix │ highWaterMark: undefined
16:27:15 │ remix │ }
16:27:15 │ remix │ }