We met Error: connect ECONNREFUSED 74.122.190.68:443 lots of times today


Error: connect ECONNREFUSED 74.122.190.68:443
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1144:16)
at TCPConnectWrap.callbackTrampoline (internal/async_hooks.js:126:14) {
errno: ‘ECONNREFUSED’,
code: ‘ECONNREFUSED’,
syscall: ‘connect’,
address: ‘74.122.190.68’,
port: 443,
config: {
url: ‘https://connect.squareup.com/v2/orders/search’,
method: ‘post’,
data: ‘’,
headers: {
Accept: ‘application/json’,
‘Content-Type’: ‘application/json’,
‘user-agent’: ‘Square-TypeScript-SDK/10.0.0’,
authorization: ‘Bearer xxxxxxxxxxxx’,
‘Square-Version’: ‘2021-04-21’,
‘Content-Length’: 340
},

Do you have specific date/times when this happened? Also what is your Square app id? If you connect with a local machine do you still get this error?

Those are all CDT time on above image today on 9.7.2021. The app id is sq0idp-JlogjOwvnkjWIjwdaK1BAw We haven’t have a try on local machine.

var http = require("http");
var request = http.request({
    hostname: "localhost",
    port: 8000,
    path: "/",
    method: "GET"
}, function(response) {
    var statusCode = response.statusCode;
    var headers = response.headers;
    var statusLine = "HTTP/" + response.httpVersion + " " +statusCode + " " + http.STATUS_CODES[statusCode];
    console.log(statusLine);
    for (header in headers) {
        console.log(header + ": " + headers[header]);
    }
    console.log();
    response.setEncoding("utf8");
    response.on("data", function(data) {
        process.stdout.write(data);
    });
    response.on("end", function() {
        console.log();
    });
});