connection ETIMEDOUT
Anonymous
FREEOP

10 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

11 Replies

Anonymous
FREEOP

10 months ago

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


Anonymous
FREEOP

10 months ago

any idea anyone?


brody
EMPLOYEE

10 months ago

does hasura have some kind of IP whitelisting in place?


Anonymous
FREEOP

10 months ago

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


brody
EMPLOYEE

10 months ago

where are you making the request from?


Anonymous
FREEOP

10 months ago

from website also from hasura event trigger


brody
EMPLOYEE

10 months ago

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


Anonymous
FREEOP

10 months ago

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


Anonymous
FREEOP

10 months ago

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


medim
MODERATOR

10 months ago

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


medim
MODERATOR

10 months ago

!s


Status changed to Solved medim 10 months ago


Loading...