“Client network socket disconnected before secure TLS connection was established”, node 10

后端 未结 3 1793
再見小時候
再見小時候 2021-01-03 19:35

When I send request to google api (using either axios or just https), e.g. https://www.googleapis.com/blogger/v3/blogs/2399953?key=...

I always hit the &

相关标签:
3条回答
  • 2021-01-03 20:03

    This error could be related to your proxy. If on Unix, check your HTTP_PROXY and HTTPS_PROXY environment variables.

    0 讨论(0)
  • 2021-01-03 20:12

    In case, someone else faces this same problem, a possible solution (if you are using windows OS), is to follow the process below:

    • Press the Windows Key
    • Search For Internet Options
    • Click on "Internet Options"
    • Click On "Connection"
    • Go to LAN Settings
    • Uncheck "Use Proxy Server for LAN ...."

    It should work but the permanent solution is to make sure you turn all software that might be automatically setting up proxy for you.

    0 讨论(0)
  • 2021-01-03 20:19

    After the question was re-opened I raised another issue against google api and finally got the answer!

    So google api has supported using proxy, check here

    0 讨论(0)
提交回复
热议问题