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: undefined11 Replies
brody
EMPLOYEE
10 months ago
does hasura have some kind of IP whitelisting in place?
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?
brody
EMPLOYEE
10 months ago
can you give me something so I can easily reproduce this?
let me check. do you think adding HOST="0.0.0.0" in the env cause any issue?
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