Docker hangs for a few minutes then fails with connect ETIMEDOUT
I just started to run this on my new ScaleWay server (Debian) and I noticed that it hands for a few minutes either at Checking free games for <email> or Purchasing <Game> and I don't understand why since it worked very well before I change my distro on scaleway.
I don't know if this is related to the app or the vps but maybe someone knows an answer or a new option to set a timeout if possible could be a help.
Thanks.
Here's the full error:
[2021-06-03 22:55:08.623 +0300] ERROR (RequestError/18 on 5cd824e032d8): connect ETIMEDOUT 34.196.170.8:443
RequestError: connect ETIMEDOUT 34.196.170.8:443
at ClientRequest.<anonymous> (/usr/app/node_modules/got/dist/source/core/index.js:792:25)
at Object.onceWrapper (node:events:476:26)
at ClientRequest.emit (node:events:381:22)
at ClientRequest.origin.emit (/usr/app/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
at TLSSocket.socketErrorListener (node:_http_client:472:9)
at TLSSocket.emit (node:events:369:20)
at emitErrorNT (node:internal/streams/destroy:188:8)
at emitErrorCloseNT (node:internal/streams/destroy:153:3)
at processTicksAndRejections (node:internal/process/task_queues:81:21)
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1138:16)
This seems related to the vps itself, it was unable to get a connection to epicgames.com there
This seems related to the vps itself, it was unable to get a connection to epicgames.com there
It's strange tho. Everything else works fine, I'm hosting my matrix server and it works without any problems. Just this has problems 🤔🤔
This seems related to the vps itself, it was unable to get a connection to epicgames.com there
But I think that if it couldn't make the connection to epic it wouldn't login at all
Its possible there's a network issue with your vps at the moment. As you're saying it did work before.
Run an mtr to epicgames.com and see if there's any packet loss etc
Its possible there's a network issue with your vps at the moment. As you're saying it did work before.
Run an mtr to epicgames.com and see if there's any packet loss etc
Probably the server had a problem. I ran the docker image again got out for a cig and in a couple of minutes I got an email from epic with by purchase
Happy to hear its working again.
@claabs could we have a configurable option to set a retry x times with a delay if something like that happens (connection error/timeout)?
I think Epic has some sort of AWS WAF bot control policy configured that doesn't like the direct HTTP calls. I see a similar timeout when running on a PIA VPN. But when using a browser, I can still load the homepage.
In your case, a programmatic timeout wouldn't exactly work because it would still have the same VPS instance. I think the second time you tried, it got a new IP that the WAF wasn't as eager to block.
I think Epic has some sort of AWS WAF bot control policy configured that doesn't like the direct HTTP calls. I see a similar timeout when running on a PIA VPN. But when using a browser, I can still load the homepage.
In your case, a programmatic timeout wouldn't exactly work because it would still have the same VPS instance. I think the second time you tried, it got a new IP that the WAF wasn't as eager to block.
Ah ok. So there's nothing much I could do excepting the fact that O should make the check run a couple of times per day and hope that the VPS isn't using an IP that's blocked
I actually figured out what was causing issues when connecting via my VPN. It turns out my VPN was configured for a lower MTU value than my other network interfaces, which led to WSL2 failing all connections over the VPN. I just had to configure WSL2 to use a lower MTU value and the requests started working again.