connection ETIMEDOUT

AnonymousFREE

2 months ago

I'm trying to fetch data from hasura, it works fine locally but getting below error when using railway.

CombinedError: [Network] fetch failed
    at makeErrorResult (/app/node_modules/@urql/core/src/utils/result.ts:193:10)
    at fetchOperation (/app/node_modules/@urql/core/src/internal/fetchSource.ts:218:11)
}
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async /app/node_modules/wonka/dist/wonka.js:346:20 {
  graphQLErrors: [],
  networkError: TypeError: fetch failed
      at node:internal/deps/undici/undici:13392:13
      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
      at async fetchOperation (/app/node_modules/@urql/core/src/internal/fetchSource.ts:181:16)
      at async /app/node_modules/wonka/dist/wonka.js:346:20 {
    [cause]: AggregateError [ETIMEDOUT]: 
        at internalConnectMultiple (node:net:1121:18)
        at internalConnectMultiple (node:net:1189:5)
        at Timeout.internalConnectMultipleTimeout (node:net:1715:5)
        at listOnTimeout (node:internal/timers:596:11)
        at process.processTimers (node:internal/timers:529:7) {
      code: 'ETIMEDOUT',
      [errors]: [Array]
    }
  },
  response: undefined
Solved

0 Replies

AnonymousFREE

2 months ago

49f9840a-591c-4ff3-83ee-5233177569ea


AnonymousFREE

2 months ago

any idea anyone?


2 months ago

does hasura have some kind of IP whitelisting in place?


AnonymousFREE

2 months ago

i don't think so. i connected another hasura instance from different railway project it's working.


2 months ago

where are you making the request from?


AnonymousFREE

2 months ago

from website also from hasura event trigger


2 months ago

can you give me something so I can easily reproduce this?


AnonymousFREE

2 months ago

let me check. do you think adding HOST="0.0.0.0" in the env cause any issue?


AnonymousFREE

2 months ago

fixed it we're using urql which was using ipv6 by default


2 months ago

Nice, glad you could fix it!
marking this as solved


2 months ago

!s


Status changed to Solved medim 2 months ago