Database connection - Attempting to connect to the database
misguidedsumo
PROOP

a day ago

Hi,

Are you able to advise as I can't seem to find a solution and resolve this issue. I did try looking.

The database is online but I can not establish a connection.

"All attempts to open a WebSocket to connect to the database failed. Please refer to https://github.com/neondatabase/serverless/blob/main/CONFIG.md#websocketconstructor-typeof-websocket--undefined. Details: TypeError: Failed to fetch"

Thanks

Solved$20 Bounty

8 Replies

Railway
BOT

a day ago

Having looked into this, the issue appears to be in your application code or configuration rather than the Railway platform itself, which puts it outside what Railway support can resolve directly.

This is exactly the kind of problem the Railway community is good at, so we'd like to open your thread as a community bounty. Railway pays a bounty to the community member who solves it, and threads like this usually get picked up quickly.

Opening it makes this entire thread public, including everything already posted. Nothing becomes public until you decide. Use the buttons below.

  • Open to the community - Before you click, take a moment to edit or remove anything you'd rather not share. The thread becomes publicly visible right away.
  • Keep it private and close the thread - Nothing becomes public and the thread closes.

Status changed to Awaiting User Response Railway • 1 day ago


Railway
BOT

a day ago

This thread has been opened as a public bounty so the community can help solve it. The thread and any further activity are now visible to everyone.

Status changed to Open Railway • 1 day ago


Try selecting the database, press Cmd/Ctrl + K, and redeploy source image.


0x5b62656e5d

Try selecting the database, press Cmd/Ctrl + K, and redeploy source image.

misguidedsumo
PROOP

a day ago

Hi, thanks I had tried that for a couple of days without success.

I am now getting a new error message so will see if I dig a little deeper.

Thanks

image.png

Attachments


Are there any errors in the logs of the Postgres service?


misguidedsumo
PROOP

a day ago

deploy log on the DB

image.png

Attachments


Does the dashboard connect to the database correctly after a hard refresh (Cmd/Ctrl + Shift + R) or in an incognito window?


0x5b62656e5d

Does the dashboard connect to the database correctly after a hard refresh (Cmd/Ctrl + Shift + R) or in an incognito window?

misguidedsumo
PROOP

a day ago

Sorry, just checked and updating some things related to the SSH message. Will see if it works.


misguidedsumo
PROOP

2 hours ago

Just to update, I have resolved this. But did it by changing from Postres to MySQL. I'll see how this maintains, but so far no issues.


Status changed to Solved 0x5b62656e5d • 30 minutes ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...