Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused error for Tabnine Hub #22

Open
emhl opened this issue Oct 24, 2021 · 6 comments
Open

Connection refused error for Tabnine Hub #22

emhl opened this issue Oct 24, 2021 · 6 comments

Comments

@emhl
Copy link

emhl commented Oct 24, 2021

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)

@bilucodota
Copy link
Contributor

@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.

@emhl
Copy link
Author

emhl commented Oct 25, 2021

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
Copy link
Author

emhl commented Oct 25, 2021

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

@bilucodota
Copy link
Contributor

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?

@alonaddy
Copy link

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
Copy link

alonaddy commented Jan 19, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants