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

Deep TabNine Local fails to download model #286

Closed
hx1997 opened this issue Aug 6, 2020 · 2 comments
Closed

Deep TabNine Local fails to download model #286

hx1997 opened this issue Aug 6, 2020 · 2 comments

Comments

@hx1997
Copy link

hx1997 commented Aug 6, 2020

  • OS version: Windows 10
  • Editor: Sublime Text
  • Editor version: 3.2.2
  • Programming language: Python
  • TabNine extension version: 2.9.0

Details:
Deep TabNine Local can't download model. In the config page it says:

The download failed: https://api.tabnine.com/model_metadata/v1: error trying to connect: unexpected EOF during handshake

When I try to go to that URL in my browser, I get a 404 response, no matter with or without proxy.

In the log it just repeats this over and over again:

[2020-08-06][13:21:27][lunar_local::locker][INFO] Trying to lock: "C:\\Users\\xxx\\AppData\\Local\\Temp\\model.lock"
[2020-08-06][13:21:27][lunar_local::locker][INFO] Lock acquired, performing the inner action
[2020-08-06][13:21:27][lunar_local::downloader][INFO] Starting download (last_failure=Some("https://api.tabnine.com/model_metadata/v1: error trying to connect: unexpected EOF during handshake")).
[2020-08-06][13:21:27][lunar_local::downloader][INFO] Tried to find cached metadata but got '系统找不到指定的文件。 (os error 2)', so downloading it instead...
[2020-08-06][13:21:27][updater][INFO] Making API request to https://api.tabnine.com/model_metadata/v1
[2020-08-06][13:21:27][lunar_local::downloader][ERROR] https://api.tabnine.com/model_metadata/v1: error trying to connect: unexpected EOF during handshake
[2020-08-06][13:21:27][lunar_local::locker][INFO] Releasing lock: "C:\\Users\\xxx\\AppData\\Local\\Temp\\model.lock"
@yanir-codota
Copy link
Contributor

yanir-codota commented Aug 6, 2020

Hi @hx1997 ,

Using the browser won't work for this case, since it's a POST message and not a GET.

are you using a proxy?
if so, please set the HTTP_PROXY and HTTPS_PROXY environment variables accordingly, and try again.

Pending your feedback.

@hx1997
Copy link
Author

hx1997 commented Aug 6, 2020

Hi, thanks for the reply! The problem's gone after I shut down the proxy completely. I tried turning it off in its settings but it didn't work. It had to be closed completely for model downloading to work.

@hx1997 hx1997 closed this as completed Aug 6, 2020
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

2 participants