Giter Club home page Giter Club logo

Comments (14)

AliShahesmaeili avatar AliShahesmaeili commented on August 16, 2024 1

image
I have same problem!
Via VPN i can open https://unleash.codeium.com/api/client/features in browser but in VS does not change

from codeiumvisualstudio.

thedemons avatar thedemons commented on August 16, 2024 1

I see: error: "Not allowed to access"

That's normal, it means you can connect to the server, would you mind following the post I commented above and installing that version of the extension to see if the problem goes away?

from codeiumvisualstudio.

AliShahesmaeili avatar AliShahesmaeili commented on August 16, 2024 1

@thedemons
Yes it works now with VPN when i remove the --detect_proxy=false

from codeiumvisualstudio.

thedemons avatar thedemons commented on August 16, 2024

Hello, sorry to hear about the connection issue, has this been a persistent problem? Can you connect to the URL https://unleash.codeium.com/api/client/features using your browser? Also, have you tried to use a VPN?

from codeiumvisualstudio.

thedemons avatar thedemons commented on August 16, 2024

Hey @AliShahesmaeili, would you mind helping us troubleshoot this problem?

Please kindly remove the --detect_proxy=false on LanguageServer.cs line 534, then build the extension using this guide and double click the .vsix file to install it. Alternatively, you can use my build instead: Codeium.zip.

Please make sure to uninstall the existing extension before installing the new one. After that, turn on the VPN to see if that works for you. Thanks!

from codeiumvisualstudio.

dadadies avatar dadadies commented on August 16, 2024

Hello, sorry to hear about the connection issue, has this been a persistent problem? Can you connect to the URL https://unleash.codeium.com/api/client/features using your browser? Also, have you tried to use a VPN?

I see: error: "Not allowed to access"

I always have connection issue with github and pypi and can never download anything from these sites through cmd prompts or anything that uses github or pypi. I have to download things manually or from other sources.

I am using a VPN but the connection is unstable, reconnecting every few sec or min. The unstable connection comes from the VPN but i don't know if this issue is the VPN or unstable connection in any of the cases.

from codeiumvisualstudio.

dadadies avatar dadadies commented on August 16, 2024

I see: error: "Not allowed to access"

That's normal, it means you can connect to the server, would you mind following the post I commented above and installing that version of the extension to see if the problem goes away?

Wow that works. Now I can 'code' like a pro. Thank you. Can you tell me what the issue was? It might help me help others figure out what is wrong with the other connections (sites /servers).

from codeiumvisualstudio.

dadadies avatar dadadies commented on August 16, 2024

I assume this problem is considered fixed and closed? I would close it but ill leave it to the veterans.

from codeiumvisualstudio.

thedemons avatar thedemons commented on August 16, 2024

Can you tell me what the issue was? It might help me help others figure out what is wrong with the other connections (sites /servers).

For some reasons your internet connection can't reach Codeium server and it requires you to use a VPN. But --detect_proxy=false prevented the language server from using the proxy hence you can use your browser but not the extension.


I assume this problem is considered fixed and closed? I would close it but ill leave it to the veterans.

Please leave it opened for now until the connection issue is fully fixed


We will investigate this further and hopefully, you won't need a VPN to use Codeium. Sorry for the inconvenience!

from codeiumvisualstudio.

dadadies avatar dadadies commented on August 16, 2024

We will investigate this further and hopefully, you won't need a VPN to use Codeium. Sorry for the inconvenience!

I have no internet without VPN so i actually need to use a VPN to be able to use codeium. So the solution / vsix you provided works perfectly for my specific VPN issue. But again i dont know if the issue was the VPN itself or just the general unstable connection it provides.

from codeiumvisualstudio.

thedemons avatar thedemons commented on August 16, 2024

@AliShahesmaeili @dadadies

Hey, sorry for the ping, PR #36 has added an option to enable proxy and it should be visible in Tools > Options > Codeium. It is disabled by default so kindly enable it from there.

Please uninstall that custom-build vsix and install the extension from the marketplace to ensure it's always up-to-date! Thanks!

image

from codeiumvisualstudio.

dadadies avatar dadadies commented on August 16, 2024

I installed from the marketplace and enabled language proxy server. But i still get a connection error:

Starting language server
Codeium Extension for Visual Studio
Language Server: I1222 10:33:02.195758 12880 main.go:538] Starting language server manager with pid 12880
Language Server: I1222 10:33:02.197323 12880 main.go:107] Manager acquired its lock file C:\Users\Owner\AppData\Local\Temp\wl52khjk.d1r/locks/manager.lock
Language Server: I1222 10:33:02.208247 12880 main.go:245] Waiting for random port file in C:\Users\Owner\AppData\Local\Temp\wl52khjk.d1r/child_random_port_1703269982197323100_3490000958135274720 to be created
Language Server: I1222 10:33:02.293607 11144 main.go:532] Starting language server process with pid 11144
Language Server: I1222 10:33:02.418393 11144 proxy.go:113] proxyplease.proxy> No proxy provided. Attempting to infer from system.
Language Server: I1222 10:33:02.430599 11144 proxy.go:113] proxyplease.proxy> Inferred proxy from system: http://127.0.0.1:60280
Language Server: I1222 10:33:02.430599 11144 client.go:589] [DEBUG] GET https://server.codeium.com/exa.api_server_pb.ApiServerService/GetCompletions
Language Server: I1222 10:33:02.765673 11144 proxy.go:94] proxyplease.connect> Proxy successfully established. No authentication was required.
Language Server: I1222 10:33:03.453343 11144 transport.go:27] Successfully dialed proxy
Language Server: I1222 10:33:03.539500 11144 server.go:532] Successfully created API server client
Language Server: I1222 10:33:03.539500 11144 transport.go:27] Successfully dialed proxy
Language Server: I1222 10:33:03.556167 11144 server.go:538] Successfully created API streaming client
Language Server: I1222 10:33:03.817627 11144 server.go:547] Successfully initialized tokenizer
Language Server: I1222 10:33:03.817627 11144 unleash.go:95] Initializing Unleash
Language Server: I1222 10:33:05.866586 11144 unleash.go:115] Successfully initialized Unleash
Language Server: I1222 10:33:05.866586 11144 search_provider.go:156] Using database at C:\Users\Owner\AppData\Roaming.codeium\database/1/MODEL_EMBED_6591
Language Server: E1222 10:33:05.922924 11144 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Language Server: E1222 10:33:05.922924 11144 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/register": dial tcp 35.223.238.178:443: i/o timeout (Client.Timeout exceeded while awaiting headers)
Language Server: I1222 10:33:06.032569 11144 search_provider.go:168] Successfully created embedding search database
Language Server: I1222 10:33:06.033859 11144 search_provider.go:214] Successfully created embedding search provider
Language Server: I1222 10:33:06.033859 11144 server.go:613] Successfully created exact search provider
Language Server: I1222 10:33:06.232201 11144 server.go:634] Successfully created completion provider
Language Server: I1222 10:33:06.232201 11144 server.go:672] Child process attempting to acquire lock file C:\Users\Owner\AppData\Local\Temp\wl52khjk.d1r/locks/child_lock_1703269982198827900_7488561739610933746
Language Server: I1222 10:33:06.233201 11144 server.go:682] Child process acquired lock file C:\Users\Owner\AppData\Local\Temp\wl52khjk.d1r/locks/child_lock_1703269982198827900_7488561739610933746
Language Server: I1222 10:33:06.262684 11144 server.go:341] Language server will attempt to listen on host 127.0.0.1
Language server started on port 62343
Language Server: I1222 10:33:06.263725 11144 server.go:385] Language server listening on random port at 62343
Language Server: I1222 10:33:06.265068 11144 web_server.go:271] Chat Client file server listening at https://127.0.0.1:62345
Language Server: I1222 10:33:06.267066 11144 web_server.go:229] Chat Web Server listening at ws://127.0.0.1:62344
Language Server: I1222 10:33:06.297212 12880 main.go:281] Language server manager found random server port 62343
Language Server: I1222 10:33:06.297212 12880 main.go:282] Language server manager found random lsp port 42101
Language Server: I1222 10:33:06.297212 12880 main.go:289] Language server manager attempting to connect to language server at 127.0.0.1:62343
Language Server Controller: Connected to ws://127.0.0.1:62344/connect/ide
Language Server: I1222 10:33:06.577848 12880 main.go:160] Fixing language server port at 62343
Language Server: I1222 10:33:06.577848 12880 main.go:340] Language server manager successfully connected to new language server at 127.0.0.1:62343
Language Server: E1222 10:34:05.833654 11144 unleash.go:56] Unleash error: Get "https://unleash.codeium.com/api/client/features": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
Language Server: E1222 10:34:05.833654 11144 unleash.go:56] Unleash error: Post "https://unleash.codeium.com/api/client/metrics": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

Whatever was in the 'custom-build vsix' made codeium work when you uploaded it. However even the custom-build vsix doesn't work anymore. [This could be a lost cause. My situation is a bit unusual as I using an unknown VPN to have internet access and they might be doing unusual things that are interfering with github, pypi, and codeium. These 3 must be doing something similar to have the similar issues. Additionally my VPN doesn't allow peer-to-peer and who knows what else. I only have these issues when I am using this VPN. When i use public wifis i have no issues. That said the custom-build vsix did work for a moment so I know its possible to fix the issue.]

from codeiumvisualstudio.

fortenforge avatar fortenforge commented on August 16, 2024

It looks like the setting did in fact work as proxyplease successfully found the proxy defined by the VPN and is using it. Not sure there's much else we can do unfortunately.

from codeiumvisualstudio.

dadadies avatar dadadies commented on August 16, 2024

I have found that occasionally i can use Codeium if I use a token. But normal signin doesn't. Its spotty but it works when it works. I dont know if this is considered fixed since i cant really confirm if before this change, there was an option to use a token as I don't remember there being a token option before the change.

from codeiumvisualstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.