xo / usql

Universal command-line interface for SQL databases
MIT License
8.91k stars 351 forks source link

couchbase error: n1ql: Connection failed Post #451

Closed mateors closed 6 months ago

mateors commented 6 months ago

I tried with the following command

usql -c "SELECT username from login;" couchbase://mostain:pass@213.255.246.203/master_erp

I got the following error:

error: n1ql: Connection failed Post "http://user:passs@213.255.246.203:9000/master_erp/query/service": dial tcp 213.255.246.203:9000: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
N1QL: Unable to connect to cluster endpoint http://user:passs@213.255.246.203:9000/master_erp. Error Get "http://213.255.246.203:9000/pools": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Anyone can help me to fix the issue?