When hostname is used instead of IP in server config N1QL query fails on Docker
Description
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:
Jeffry Morris May 9, 2022 at 10:56 PM
Marking these as closed and "Wont fix" as they are old and align with sdk2 which is now EOL. If you disagree (customer escalation for example), please reopen and assign to me with the reason for reopening.
mike_goldsmith July 31, 2017 at 3:49 PM
Matt suggested to sync with Michael for similar issue on Java client WRT: disable reverse address resolution.
austin.gonyou July 19, 2017 at 7:40 PMEdited
I had a customer at <CUSTOMER NAME UPON REQUEST> pose the same question but they are running Node.JS Is this an issue with couchbase server response when being addressed by hostname vs IP? Or something else?
I will try to add the version of Node Client as well.
Won't Fix
Pinned fields
Click on the next to a field label to start pinning.
Details
Details
Assignee
Unassigned
UnassignedReporter
Jeffry Morris
Jeffry MorrisComponents
Fix versions
Affects versions
Priority
Instabug
Open Instabug
PagerDuty
PagerDuty Incident
PagerDuty

PagerDuty Incident
Sentry
Linked Issues
Sentry
Linked Issues
Zendesk Support
Linked Tickets
Zendesk Support

Linked Tickets
Created July 19, 2017 at 7:32 PM
Updated May 9, 2022 at 10:56 PM
Resolved May 9, 2022 at 10:56 PM
Instabug
https://forums.couchbase.com/t/curlexception-couldnt-connect-to-server-on-queryasync-using-docker/13482/6
Workaround: (from forum post)
"We were able to resolve this issue by not changing the hostname of the couchbase server. The configuration for the Couchbase server we had was changing the hostname to a named address instead of letting it default to an IP address. Once we removed the hostname change, everything is working as expected.
I still find it odd that Get worked under these circumstances but Query did not. We suspect it is related to the way the IP address is resolved from the hostname, but we're not sure. It's possibly a bug with Couchbase where it fails lookup the IP of a named host for the index service for queries, but this is pure speculation."