Are you using a proxy? A firewall? A VPN? An antivirus?
Rules that exist for security compliance can cause issues for Tabnine to operate correctly. A simple configuration can resolve these issues. Please see the following instructions:
1. In most cases (standard proxies), setting up the http_proxy
and https_proxy
variables in the environment variables on your machine should solve the problem.
2. For tabnine to operate properly, it needs to be able to communicate with several hosts:
api.tabnine.com, notify.tabnine.com, www.tabnine.com, cloud.tabnine.com (port 443) , c2.p.tabnine.com, update.tabnine.com, console.tabnine.com
Please authorize Tabnine with a wild card: *.tabnine.com, tabnine.com
For VSCode
- To set up your proxy, go to your VSCode Settings and ensure your HTTP proxy configuration is set up properly (File -> Settings -> Application -> Proxy).
- Restart your editor so the proxy configuration is applied correctly to all components requiring connections via the proxy.
-
If you are using a proxy with authentication, please define that in the IDE:
Set credentials inside the Http proxy URL box:
http:// {username:password}@{IP adddress/URL}:{port number},
for example:
http://username:password@10.203.0.1:5187
For JetBrains
-
Set up the HTTP proxy in your Preferences (File -> Settings ->Appeareance & Behavior ->HTTP Proxy).
- Restart your editor so the proxy configuration is applied correctly to all components requiring connections via the proxy.
- If you are using a proxy with authentication please define that in the IDE:
You can always try a health check to see if there is a connection (you can also measure the roundtrip). Run the following in your terminal:
curl -w "\nRoundtrip time is: %{time_total}" https://c2.p.tabnine.com/health
curl -w "\nRoundtrip time is: %{time_total}" https://api.tabnine.com/health
You should see the following:
If the connection is ok (it should take less than 1 second).
*For extra tests, please check this link.
Are you working from a company computer network?
You can run the Tabnine binary engine directly from the command line. To test this, let's try to run the binary :
- Find your engine path in the Hub -> Support -> General Info -> Engine file path
- Open a cmd with admin permissions ( open terminal for Mac/Linux)
-
Run the process like so:
<engine file path> --diagnose --no_bootstrap --log-level debug --log-file-path <a log file path>
This will start the process and write the logs to the given file path. If you want to see the logs directly in the cmd as well, add the flag--log_to_stderr
-
Copy-paste the following JSON to the cmd where the process runs:
{"version":"9.9.9","request":{"Configuration":{}}}
, and hit enter.
This will open the Hub from the process that runs in the cmd. - Try to log in from the Hub. If this works, it means that the IDE's process doesn't have sufficient permissions to access api.tabnine.com.
We have attached below a screen recording of the above instructions. Hopefully, it'll help:
https://user-images.githubusercontent.com/67855609/219047879-4ac6294f-3c39-450b-a3c5-e639b3a4a35b.mp4
If you are unfamiliar with these settings and have no access to the configurations, please contact your company IT and ask to allowlist Tabnine addresses (as shown in the second step).
*Unfortunately, our support team won't be able to fix this problem for you, and it requires you to act on your side. Nevertheless, you are always welcome to contact our support team and ask for further assistance.*