You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I 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 the redirect 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:
{
"errors": [
{
"message": "Internal error. Looks like something went wrong on our end.\nRequest ID: f5311f12-ee30-4c09-948b-4f1fd2a94fe0-1721833405 (include this in support requests).",
"extensions": {
"code": "INTERNAL_SERVER_ERROR",
"requestId": "f5311f12-ee30-4c09-948b-4f1fd2a94fe0-1721833405"
}
}
]
}
We are using the suggested unstable_newEmbeddedAuthStrategy
Steps to reproduce the problem
Perform a POST request to a route and authenticate the request. For example:
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.
@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
The text was updated successfully, but these errors were encountered: