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

Tabnine on Jupyter Lab within Docker results in connection errors #36

Open
andypfau opened this issue Sep 30, 2023 · 0 comments
Open

Tabnine on Jupyter Lab within Docker results in connection errors #36

andypfau opened this issue Sep 30, 2023 · 0 comments

Comments

@andypfau
Copy link

Hi,

I have JupyterLab 4.0.6 inside a Docker container, which in turn is exposed to the internet. I also installed Jupyter Lab with pip install jupyterlab_tabnine.

There is a "Tabnine" button in the bottom bar of Jupyterlab, but when I click on it I get "Something went wrong / Please try again or contact us via [email protected]". When I open the Firefox developer tools, I discover hundreds of failed HTTP connections to 127.0.0.1:1123, which I suspect is some server that Tabnine spawns. In the Firefox log I get hundreds of erros like "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http:https://127.0.0.1:1123/sec-wgrjiqgnwagysdbzpfee/api_key_settings. (Reason: CORS request did not succeed). Status code: (null)."

Note that I added c.NotebookApp.allow_origin='*' to my JupyterLab config file already. I also tried to expose port 1123 from the container, with no success.

I suspect that a couple of things are happening here:

  • Apparently Tabnine tries to connect to 127.0.0.1, but it should connect to the internet domain on which I host the JupyterLab instance (like Jupyter does properly).
  • Perhaps there is an additional problem with CORS, I suspect some config is missing somewhere.

Is there any way to fix that...?

I found a ticket that sounds more-or-less similar (#22), which suggests to open "tabnine::config", but when I enter that string into File->Open From Path, or File->Open from URL, it says "Cannot open". I suspect that was perhaps for an older version of Jupyter.

Let me know if any logs would be of help.

Thanks a lot :-)

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

1 participant