tabnine-jupyterlab icon indicating copy to clipboard operation
tabnine-jupyterlab copied to clipboard

Connection refused error for Tabnine Hub

Open emhl opened this issue 4 years ago • 6 comments

i'm running jupyterlab inside a docker continer and tabnine is already giving me recommendations but if i wanna acess the tabnine hub i just get a connection refused error (i already opened port 5555 but this doesn't seem to help)

emhl avatar Oct 24 '21 00:10 emhl

@emhl Type tabnine::config in open notebook to get Tabnine hub open in a new window. The url should look something like this http://localhost:port/secret-string. use docker -p to forward the port from your host to your docker container.

Let us know if it works for you.

bilucodota avatar Oct 25 '21 11:10 bilucodota

i get the following error Couldn't start web browser at http://127.0.0.1:5555/secret-string. See https://tabnine.com/faq#browser_failed

executing docker port shows i already have port 5555 forwarded.

$ docker port jupyter

5555/tcp -> 0.0.0.0:5555
5555/tcp -> :::5555
8888/tcp -> 0.0.0.0:8888
8888/tcp -> :::8888

emhl avatar Oct 25 '21 13:10 emhl

the faq tells me to run ssh -L, but i'm running the docker container on the same machiene

emhl avatar Oct 25 '21 14:10 emhl

try to ssh into the container and run curl http://127.0.0.1:5555/secret-string (replace secret-string with the actual string). Do you get a valid http response?

bilucodota avatar Oct 25 '21 14:10 bilucodota

I have the same issue, and I do get a valid http response when I curl. BTW, how do I get the "secret-string" for my case?

alonaddy avatar Jan 19 '22 19:01 alonaddy

In my case I am running Open VSCode in a container (tabnine gives me suggestions without issues, but I cannot get to the settings of tabnine, it give me 127.0.0.1 didn’t send any data).

alonaddy avatar Jan 19 '22 19:01 alonaddy