Troubleshooting failed connection in Couchbase source connector

Summary

User is building a source connector for Couchbase and encountering a ‘failed to connect’ error despite getting results when using curl from the CLI.


Question

Hey everyone, I am building a source connector for couchbase. Started with the manifest.yaml file Not sure why i get failed to connect although i get the results when i curl from the cli.



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["building-source-connector", "couchbase", "manifest.yaml", "failed-to-connect", "curl", "cli"]

you installed Airbyte with abctl and you run Couchbase on localhost:8091?

Couchbase is running as a Docker container or on host machine?

is there a way i can run airbyte locally without using docker ?

I don’t know. I haven’t seen anybody trying.

Is it possible to run Couchbase as a Docker container?

you could connect Couchbase to the same network, so they could communicate with Airbyte

docker network connect kind <couchbase container name>

we also have capella which is couchbase on the cloud. will try there as well

Another option that comes to my mind is to use https://ngrok.com
ngrok http 8091
exposing local couchbase to internet :wink:

probably you could use your IP address in local network, but couchbase should bind to 0.0.0.0 instead of localhost

Thanks <@U05JENRCF7C> for providing a mutitude of these options. Am definitely going to try each one out. Quick question,
what command does Airtbyte BasicHttpAuthenticator run under the hood. it doesnt base 64 encode it right ?

you mean this BasicHttpAuthenticator class in file https://github.com/airbytehq/airbyte/blob/ec657188699d48f5ddce14824242da37c9a463ee/airbyte-cdk/python/airbyte_cdk/sources/streams/http/requests_native_auth/token.py#L54|token.py#L54 ?

yeah, this one looks like its base 64 encoding the username:password

Should be possible. a little complex but will try