Couchbase-Ecosystem / VSCode-Couchbase

This extension is designed to provide a seamless experience for Couchbase Server users who want to work within the popular Visual Studio Code editor.
https://marketplace.visualstudio.com/items?itemName=Couchbase.vscode-couchbase
Apache License 2.0
6 stars 5 forks source link

Ambiguous timeout after "Connection established successfully" #399

Open TheUnableDeveloper opened 3 months ago

TheUnableDeveloper commented 3 months ago

Hi everyone,

I installed the plugin today, and after configuring the connection, it says "Connection established successfully". But, once i try to list the content of the connection, it gives back a timeout error "ambiguous timeout".

If I go on the same domain on the browser, I can see the login page of CB server without any problems, and even with the PHP SDK I'm using, I don't have any connection issues.

Connection string: 192.168.1.74 Secure connection: false

Are there any logs that I can check?

Thank you

VSCode version: Version: 1.90.1 (Universal) Commit: 611f9bfce64f25108829dd295f54a6894e87339d Date: 2024-06-11T21:02:41.372Z (2 days ago) Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Darwin arm64 23.5.0

Extension versions (tried): 2.0.4, 2.0.3, 2.0.2, 2.0.0

lokesh-couchbase commented 2 months ago

Hi @TheUnableDeveloper , is the database running locally with default ports?

TheUnableDeveloper commented 2 months ago

Hello, thanks for helping!

It's a remote cluster inside company's network.

We don't have problems reaching it by browser (cb server ui), mobile (connecting to the cb cluster sync-gateway), and local container with our application (cb server).

And yes, default ports (8091)

Just the plugin is giving us this problem Thank you!

TheUnableDeveloper commented 1 month ago

Hello, Any news @lokesh-couchbase ?

thank you

deniswsrosa commented 1 month ago

Hi @TheUnableDeveloper ! Looks like we were able to reproduce the issue and now we are trying to narrow down the problem. We will give you an update in a few days.

prajwal-pai77 commented 1 month ago

Hi @TheUnableDeveloper Just a quick question: Are you able to able to connect to the cluster and list some documents as well using php sdk?

TheUnableDeveloper commented 1 month ago

Hello, yes with PHP SDK everything works properly

thank you

prajwal-pai77 commented 1 month ago

Okay thanks for confirming, Can you please tell me

  1. Where the cluster is deployed? Aws or local/docker
  2. Are you trying to run the vscode extension in the same network as the php sdk?
TheUnableDeveloper commented 1 month ago

Hello, 1) I'm using a vpn to connect to the company's network, where the cluster is, inside a k8s cluster. k8s is exposing a nodeport for this service. We are using Couchbase operator.

2) I'm using docker container with php application inside, running on my Mac. but both sdk and extensions are in my mac (extensions is in local)

prajwal-pai77 commented 1 month ago

Okay thanks,

  1. What is the Couchbase server version and php sdk version?
  2. Is there any IP forwarding rule in the docker container? Can you please try running the php sdk(with fetching of documents) example in your local in the same environment as the extension and see if it works, rather than running inside docker container?
TheUnableDeveloper commented 1 month ago

1)

2)

thank you!

deniswsrosa commented 1 week ago

@TheUnableDeveloper has this issue been sorted?