Client network socket disconnected before secure TLS connection was established

So I’m using glitch to host my discord bot and it was working very well till last week or about 2 weeks. I get this error everytime I try to turn on my bot. Sometimes it isn’t coming and bot is online but other times, the following error comes

Error: Client network socket disconnected before secure TLS connection was established

at TLSSocket.onConnectEnd (_tls_wrap.js:1213:19)
at Object.onceWrapper (events.js:281:20)
at TLSSocket.emit (events.js:198:15)
at endReadableNT (_stream_readable.js:1139:12)
at processTicksAndRejections (internal/process/task_queues.js:81:17)
code: ‘ECONNRESET’,
path: null,
host: ‘discordbots.org’,
port: 443,
localAddress: undefined }

My bot is online as long as the project is online but it isn’t responding me if that error comes. My project name is shared-feast hope you help

Googling this line turned up this stackoverflow question: https://stackoverflow.com/questions/53593182/client-network-socket-disconnected-before-secure-tls-connection-was-established

I wonder if Glitch set up a proxy two weeks ago? @Glitch_Support could that be the case?

The project being in a docker container is similar behaviour to a proxy, in terms of relaying connections from a local port to an external port.

This is @cori’s response to an earlier post with the same error.

Edit …

Ah that’s really helpful – thanks @mishavee!