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 am using graphql-request in Remix, which supports directs using throw Response.json(). I added this approach in my responseMiddleware which ensures that if there are certain error codes in the response, user is logged out. But instead of the redirect happenning, my server crashes with the following error:
Would it be possible to add a middleware that will always run when calling gqlClient.request() before returning the data?
The text was updated successfully, but these errors were encountered:
What
I am using graphql-request in Remix, which supports directs using
throw Response.json()
. I added this approach in myresponseMiddleware
which ensures that if there are certain error codes in the response, user is logged out. But instead of the redirect happenning, my server crashes with the following error:Would it be possible to add a middleware that will always run when calling
gqlClient.request()
before returning the data?The text was updated successfully, but these errors were encountered: