Skip to content

VS Code Extension crashes with modified hosts file #3135

@pinguin999

Description

@pinguin999

Describe the bug
The VS Code Extension crash on start. With his error:

events.js:292 throw er; // Unhandled 'error' event ^[Error: connect ECONNREFUSED 0.0.0.0:443 at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)Emitted 'error' event on ClientRequest instance at: at TLSSocket.socketErrorListener (_http_client.js:426:9) at TLSSocket.emit (events.js:315:20) at emitErrorNT (internal/streams/destroy.js:92:8) at emitErrorAndCloseNT (internal/streams/destroy.js:60:3) at processTicksAndRejections (internal/process/task_queues.js:84:21)] { errno: 'ECONNREFUSED', code: 'ECONNREFUSED', syscall: 'connect', address: '0.0.0.0', port: 443}

To Reproduce
Steps to reproduce the behavior:

  1. Install https://winhelp2002.mvps.org/hosts2.htm host file
  2. Open a Flutter Project in VS Code -> Crash

Expected behavior
No Crash ^^

Versions (please complete the following information):

  • VS Code version: Version: 1.53.0
    Commit: 8490d3dde47c57ba65ec40dd192d014fd2113496
    Date: 2021-02-03T16:01:04.046Z (5 days ago)
    Electron: 11.2.1
    Chrome: 87.0.4280.141
    Node.js: 12.18.3
    V8: 8.7.220.31-electron.0
    OS: Darwin x64 20.3.0
  • Dart extension version: 3.19.2
  • Dart/Flutter SDK version: VS Code Flutter version 3.19.0
    Flutter 1.22.6 • channel stable • https://github.com/flutter/flutter.git
    Framework • revision 9b2d32b605 (2 weeks ago) • 2021-01-22 14:36:39 -0800
    Engine • revision 2f0af37152
    Tools • Dart 2.10.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions