getting connection attempt failed while connecting to postgresql instance
ramanth
HOBBYOP

3 months ago

getting above error

in the code , im converting the DATABASE_URL to jdbc format

jdbc:postgresql://postgres.railway.internal:5432/railway

Attachments

$10 Bounty

4 Replies

Railway
BOT

3 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


ramanth
HOBBYOP

3 months ago

im able to connect using the public facing connection string with my pgadmin tool, but this is not working from internal url from the app running in the same project


fra
HOBBYTop 10% Contributor

3 months ago

is your library try to connect over SSL? the internal connection use a self-signer certificate, you might need to disable ssl


ramanth
HOBBYOP

3 months ago

tried disabling the ssl and still I see the same exception.

tried by changing the connection string to jdbc:postgresql://postgres-copy.railway.internal:5432/railway?sslmode=disable


Loading...