avwo / whistle

HTTP, HTTP2, HTTPS, Websocket debugging proxy
https://wproxy.org/
MIT License
14.38k stars 1.09k forks source link

插件中无法发起http请求 #1142

Open WinChua opened 2 months ago

WinChua commented 2 months ago

我想要在插件的reqRead中通过http请求解码body,但是发起请求的时候总是报错

get err Error: Client network socket disconnected before secure TLS connection was established
    at TLSSocket.onConnectEnd (node:_tls_wrap:1732:19)
    at TLSSocket.emit (node:events:532:35)
    at endReadableNT (node:internal/streams/readable:1696:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  code: 'ECONNRESET',
  path: null,
  host: 'localhost',
  port: 443,
  localAddress: undefined
}
avwo commented 2 months ago

把 localhost 换成 127.0.0.1 试试