-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed as not planned
Closed as not planned
Copy link
Labels
bug:unverifiedfeat:fetchIssues related to @remix-run/web-fetchIssues related to @remix-run/web-fetchruntime:node
Description
What version of Remix are you using?
1.7.3
Steps to Reproduce
I have a graphql server. Making a single request to it in loader or action works fine. But if I have multiple requests:
await graphqlSdk().getStuff();
await graphqlSdk().getStuff();it fails with the following error:
FetchError: request to http://0.0.0.0:8000/graphql failed, reason: socket hang up
at ClientRequest.<anonymous> (/workspace/node_modules/.pnpm/@remix-run+web-fetch@4.3.1/node_modules/@remix-run/web-fetch/src/fetch.js:111:11)
at ClientRequest.emit (node:events:513:28)
at Socket.socketOnEnd (node:_http_client:512:9)
at Socket.emit (node:events:525:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ECONNRESET',
code: 'ECONNRESET',
erroredSysCall: undefined
}Expected Behavior
The requests should succeed and my backend should receive 2 requests.
Actual Behavior
The first request succeeds but the second one does not.
EvHaus
Metadata
Metadata
Assignees
Labels
bug:unverifiedfeat:fetchIssues related to @remix-run/web-fetchIssues related to @remix-run/web-fetchruntime:node