Vscode develops node http/https module connect ECONNREFUSED 127.0.0.1 3300

problem description

vscodenode http/https connect ECONNREFUSED 127.0.0.1 3300

the environmental background of the problems and what methods you have tried

optionshostname "encrypted.google.com" 
const options = {
  hostname: "encrypted.google.com",
  port: 443,
  path: "/",
  method: "GET"
};
hostname: "localhost"   port: "3300" 
Error: connect ECONNREFUSED 127.0.0.1 3300

related codes

/ / Please paste the code text below (do not replace the code with pictures)

const https = require("https");
const http = require("http");

const option = {
hostname: "127.0.0.1",
port: "3300",
path: "/",
method: "GET",
header: {
    "Content-Type": "application/x-www-form-urlencoded",
    "Content-Length": 20
}
};

let servers = https.request(option, (res) => {
console.log("", res.statusCode);
console.log("", res.headers);

res.on("data", d => {
    process.stdout.write(d);
})
})

servers.on("error", err => {
console.log("Error", err);
});

servers.end();

clipboard.png

what result do you expect? What is the error message actually seen?



should be port occupancy

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e51f-2c3f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e51f-2c3f9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?