Closed Normanras closed 2 months ago
Give me a db url format that you are using. Just conceal username and password.
postgresql//username:pass@long.db.name.123qwwz.amazonaws.com:port/dbname
psql also connects successfully
I'm not sure where does https
come from. Do you have some other connections? Does your username or password maybe contain https
word? It shouldn't cause any issues but I'm just guessing at this point.
Weird. It is a remote db, but I can't imagine I'm the only one connecting to remote db. It's just weird because just running psql
and the flags works without issue. I'll post this over on vim-dadbod. And see if they have seen this before.
I'm connecting to an AWS postgres without any issues, so that shouldn't be a problem. I'm just not sure where does the adapter figure out https
from the url if it does not contain it at all.
Figured it out. Didn't realize that every connection gets saved to connections.json
. This issue & comments helped me solved it. When I first tried the plugin, I absentmindedly typed in my url with https
and it kept it in the file, which is why I kept getting the error. Removing everything from the file and re-connecting to the DB got everything working. It's working like a charm!
This might belong as an issue in the dadbod repo as I saw issues around adaptors, but this error only comes up when I try to open
:DBUI
after adding a connection.I can add a connection and run any of the other DBUI commands except the ones that actually create/open the UI. Couldn't find anything in this repos issues, so happy to close this if I'm in the wrong place.
FWIW, I'm trying to connect to a postgres db on AWS.