Huachao / vscode-restclient

REST Client Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=humao.rest-client
MIT License
5.24k stars 436 forks source link

TLS problem(mybe) with domain in /etc/hosts with traefik #1259

Open lostsquirrel opened 5 months ago

lostsquirrel commented 5 months ago

I use a domain only in /etc/hosts, get the tls cert by traefik on letencrypt, it's work fine on browser or curl, but not work on restclient vscode 1.88 restclient 0.25.1 ubuntu 22.04

Error - 5:11:17 PM] Failed to send request:
RequestError: Client network socket disconnected before secure TLS connection was established
    at ClientRequest.<anonymous> (/home/lisong/.vscode/extensions/humao.rest-client-0.25.1/dist/extension.js:252:3306)
    at Object.onceWrapper (node:events:632:26)
    at ClientRequest.emit (node:events:529:35)
    at e.emit (/home/lisong/.vscode/extensions/humao.rest-client-0.25.1/dist/extension.js:558:29932)
    at TLSSocket.socketErrorListener (node:_http_client:501:9)
    at TLSSocket.emit (node:events:517:28)
    at emitErrorNT (node:internal/streams/destroy:151:8)
    at emitErrorCloseNT (node:internal/streams/destroy:116:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)