Intermittent "Connection refused" errors



Alpaca SDK Version

Other Environment Details


I’m getting intermittent Connection refused errors. I get them in both the live and paper accounts. Yesterday afternoon I ran into it repeatedly when trying to place a sell order on my live account! Multiple buy orders, made minutes earlier, went thru just fine. Then this morning all I did was call the account api. First from my simple node.js script, and then from curl (which means versions and local environment are irrelavant) as seen here:

curl -X GET -H “APCA-API-KEY-ID: xxxMy_valid_keYxxx” -H " APCA-API-SECRET-KEY: xxxMy_valid_secreTxxx"
curl: (7) Failed to connect to port 443: Connection refused

This is a major issue. And if I don’t get some kind of timely response on this, then that’s an even bigger red flag. This will be my 2nd post to the forum (first one disappeared somewhere in your approval queue) and I’ve posted to slack as well with no luck.

Paper or Live Tradng?

Example Code
See above