grammarly icon indicating copy to clipboard operation
grammarly copied to clipboard

Proxy support ?

Open Mikaciu opened this issue 2 years ago • 8 comments

Hello,

I have some trouble using the Grammarly VSCode extension on a host behind a corporate proxy.

Extension version: v0.23.6 Pre-Release / Preview The extension is installed on a Linux host I access through the "Remote-SSH" extension. On the remote host is installed a local proxy (CNTLM), which is configured in VSCode through the http.proxy configuration variable.

None of the values in the option http.proxySupport seem to be used by the extension, it only seems to retrieve the JS using a direct connection :

Ready!
[Error - 11:00:31 AM] Server initialization failed.
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: connect ETIMEDOUT 52.222.158.17:443
  Code: -32603 
[Error - 11:00:31 AM] Starting client failed
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: connect ETIMEDOUT 52.222.158.17:443
  Code: -32603 

Additional analysis :

After having checked /proc/<pid of the znck.grammarly-0.23.6/dist/server/index.node.js process>/environ, I can see the following environment variables are set :

  • http_proxy
  • HTTP_PROXY
  • https_proxy
  • HTTPS_PROXY
  • ftp_proxy
  • FTP_PROXY

Would it be possible for the extension to handle the proxy configuration ?

Thanks,

BR

Mikaciu avatar Jun 28 '22 09:06 Mikaciu

Similar here

Ready!
[Error - 12:43:17 PM] Server initialization failed.
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: self signed certificate in certificate chain
  Code: -32603 
[Error - 12:43:17 PM] Starting client failed
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: self signed certificate in certificate chain
  Code: -32603 

JasonCubic avatar Nov 21 '22 20:11 JasonCubic

Similar here

Ready!
[Error - 16:42:55] Server initialization failed.
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: socket hang up
  Code: -32603 
[Error - 16:42:55] Starting client failed
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: socket hang up
  Code: -32603 

xuestrange avatar Nov 29 '22 08:11 xuestrange

+1 I am also getting the same error on a Linux host running behind a corporate proxy.

[Error - 10:27:08] Server initialization failed.
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: connect ETIMEDOUT 18.164.52.11:443
  Code: -32603 
[Error - 10:27:08] Starting client failed
  Message: Request initialize failed with message: request to https://js.grammarly.com/[email protected] failed, reason: connect ETIMEDOUT 18.164.52.11:443
  Code: -32603 

efekhari27 avatar Sep 04 '23 08:09 efekhari27

+1

Ready!
[Error - 16:46:49] Server initialization failed.
  Message: Request initialize failed with message: fetch failed
  Code: -32603 
[Error - 16:46:49] Starting client failed
  Message: Request initialize failed with message: fetch failed
  Code: -32603 

niiccolas avatar Sep 29 '23 14:09 niiccolas

This is a much-needed feature as it is otherwise unusable in a corporate environment...

Karpisek avatar Oct 02 '23 06:10 Karpisek

Anyone can submit a PR?

xuestrange avatar Oct 02 '23 06:10 xuestrange

+1

Ready!
[Error - 16:46:49] Server initialization failed.
  Message: Request initialize failed with message: fetch failed
  Code: -32603 
[Error - 16:46:49] Starting client failed
  Message: Request initialize failed with message: fetch failed
  Code: -32603 

]

Having same issue..

Koushikphy avatar Nov 08 '23 13:11 Koushikphy

Another user (on linux and in the company) seeing this error. What exactly changed in last few releases that we are observing this issue?

andrejpan avatar Nov 13 '23 08:11 andrejpan