Open aidan-sl opened 1 month ago
I've managed to isolate this to an issue with using Sentry, it doesn't occur without it. It seems Sentry are making modifications to the request object.
Unfortunately still seems to be an issue after removing Sentry
@aidan-sl try to use useSubmit from Remix to submit to an action function and also return something from the action function If you don't need any data just return null
Issue summary
From POST requests failing with various errors.
Before opening this issue, I have:
@shopify
packages@shopify/shopify-*
package and version:{ logger: { level: LogSeverity.Debug } }
in my configurationI have an
action
method which handles POST requests from a form. The first call in this method attempts to authenticate the admin request:const { redirect } = await authenticate.admin(request);
has we require theredirect
helper.This is failing with an application error.
Actual behavior
The authenticate request fails.
I have noticed looking at the network requests, the GQL mutation
GenerateSessionToken
is also failing, with the response:We are using the suggested
unstable_newEmbeddedAuthStrategy
Steps to reproduce the problem
Debug logs