redis and mongodb I got problem with .env
hknfrt
HOBBYOP

a year ago

Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal

Solved

0 Replies

hknfrt
HOBBYOP

a year ago

project ID:d517069c-0bb0-4771-ac55-08ff3b9cd8e8


brody
EMPLOYEE

a year ago

if you are using ioredis, please see our docs for that -


hknfrt
HOBBYOP

a year ago

thank you, I will check it


hknfrt
HOBBYOP

a year ago

doesn't work for me


brody
EMPLOYEE

a year ago

are you using ioredis?


hknfrt
HOBBYOP

a year ago

yes


brody
EMPLOYEE

a year ago

is redis in the same project as your app?


hknfrt
HOBBYOP

a year ago

nope


hknfrt
HOBBYOP

a year ago

when I run the locally everythings working but on railway


hknfrt
HOBBYOP

a year ago

db connection failed


brody
EMPLOYEE

a year ago

you need to have redis in the same project


hknfrt
HOBBYOP

a year ago

ok I will try


hknfrt
HOBBYOP

a year ago

still same


hknfrt
HOBBYOP

a year ago

[ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) ERR! Db Failed to setup database connection { short_message: 'TESTAPP [Exception] Authentication failed.', full_message: 'MongoServerError: Authentication failed.\n' + ' at Connection.onMessage (/testapp/node_modules/mongodb/lib/cmap/connection.js:231:30)\n' + ' at MessageStream. (/testapp/node_modules/mongodb/lib/cmap/connection.js:61:60)\n' + ' at MessageStream.emit (node:events:518:28)\n' + ' at processIncomingData (/testapp/node_modules/mongodb/lib/cmap/message_stream.js:125:16)\n' + ' at MessageStream._write (/testapp/node_modules/mongodb/lib/cmap/message_stream.js:33:9)\n' + ' at writeOrBuffer (node:internal/streams/writable:572:12)\n' + ' at _write (node:internal/streams/writable:501:10)\n' + ' at Writable.write (node:internal/streams/writable:510:10)\n' + ' at Socket.ondata (node:internal/streams/readable:1009:22)\n' + ' at Socket.emit (node:events:518:28)', _exception: 'yes', _error: 'Authentication failed.', _code: '18', _codeName: 'AuthenticationFailed', facility: 'testapp', host: 'f508cab8ffc2', timestamp: 1733253859.991, _component: 'testapp' } [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal


brody
EMPLOYEE

a year ago

are you getting this during build or runtime?


hknfrt
HOBBYOP

a year ago

runtime


hknfrt
HOBBYOP

a year ago

build is ok


brody
EMPLOYEE

a year ago

screenshot of your project please


hknfrt
HOBBYOP

a year ago

dashbord?


brody
EMPLOYEE

a year ago

of your project canvas


hknfrt
HOBBYOP

a year ago

1313589750128447500


brody
EMPLOYEE

a year ago

okay now please see this docs


hknfrt
HOBBYOP

a year ago

ok


hknfrt
HOBBYOP

a year ago

I did and not worked


hknfrt
HOBBYOP

a year ago

I solved, thanks for intersted


brody
EMPLOYEE

a year ago

!s


Status changed to Solved brody about 1 year ago


Loading...