Skip to content

Can not download problems #607

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

Open
thiner opened this issue Jul 28, 2020 · 4 comments
Open

Can not download problems #607

thiner opened this issue Jul 28, 2020 · 4 comments

Comments

@thiner
Copy link

thiner commented Jul 28, 2020

I was not able to download problems after login. I'm running the plugin behind corporate firewall, I am sure the proxy setting is working fine. The LeetCode log as below:

VS Code: 1.47.2

v10.20.1
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✘     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✘     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✔     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✘     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
 Premium   User                 Host
------------------------------------------------------------
    ✘      undefined            https://leetcode.com
- Downloading problems
[ERROR] Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
login: pass: - Signing in leetcode.com
[ERROR] Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
- Downloading problems
[ERROR] Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
- Downloading problems
[ERROR] Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
- Downloading problems
[ERROR] Error: tunneling socket could not be established, cause=connect ECONNREFUSED 127.0.0.1:80
@Yuhe9
Copy link

Yuhe9 commented Aug 4, 2020

same issue - not be able to download problems. But different error code:
[ERROR] Error: self signed certificate in certificate chain
Also behind corp firewall.

@medopaw
Copy link

medopaw commented Jan 30, 2022

Same here. (VSCode 1.63.2)

v17.4.0
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✔     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
(node:35028) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✔     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
(node:35029) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✔     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
(node:35030) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Active  Name               Version         Desc
----------------------------------------------------------------------------------------------------
   ✔     solution.discuss   2019.02.03      Plugin to fetch most voted solution in discussions.
   ✔     company            2017.12.18      Plugin to query by company for free user.
   ✔     cache              default         Plugin to provide local cache.
   ✔     retry              default         Plugin to retry last failed request if autologin.enable is on.
   ✔     leetcode.cn        2018.11.25      Plugin to talk with leetcode-cn APIs.
   ✔     leetcode           default         Plugin to talk with leetcode APIs.
(node:35031) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
 Premium   User                 Host
------------------------------------------------------------
    ✘      undefined            https://leetcode-cn.com
(node:35032) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
- Downloading problems
(node:35033) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
[ERROR] Error: unable to get local issuer certificate
- Downloading problems
(node:35093) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
[ERROR] Error: unable to get local issuer certificate
- Downloading problems
(node:35254) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
[ERROR] Error: unable to get local issuer certificate

@RamboSofter
Copy link

same issue:

`TypeError: Cannot read property 'toString' of undefined
at /home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/vsc-leetcode-cli/lib/log.js:55:31
at Array.map ()
at Object.log. [as info] (/home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/vsc-leetcode-cli/lib/log.js:55:20)
at /home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/vsc-leetcode-cli/lib/commands/user.js:121:13
at /home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:523:14
at Request._callback (/home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/vsc-leetcode-cli/lib/plugins/leetcode.js:422:19)
at self.callback (/home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/request/request.js:185:22)
at Request.emit (events.js:375:28)
at Request.onRequestError (/home/shangyexin2/.vscode-server/extensions/labuladong.leetcode-helper-1.0.0/node_modules/request/request.js:881:8)
at ClientRequest.emit (events.js:375:28)

  • Downloading problems
    (node:2729138) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
    (Use node --trace-warnings ... to show where the warning was created)
    [ERROR] Error: tunneling socket could not be established, cause=getaddrinfo ENOTFOUND locakhost`

@joshuakosasih
Copy link

I solved the unable to get local issuer certificate with this

export NODE_TLS_REJECT_UNAUTHORIZED=0

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

5 participants