Debugging urlfetch Error Connecting To Remote Server

Asked Apr 12, 2023·2 replies·Last activity 3 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hi, when using $(urlfetch url) with my custom domain, I get an occasional "Error Connecting To Remote Server". It happens every 1 in ~3 requests. The problem is, I see no logs of Nightbot trying to connect to my domain on those failed requests. Is there any way I can see an actual error Nighbot is getting? "Error Connecting To Remote Server" is very generic and doesn't help with debugging

2 replies

So far everything points me to conclusion that Nightbot has some issues connecting to AWS services (that's where my domain is hosted). I did the following test:
1. Setup a proxy domain and pointed Nightbot urlfetch url to that new domain
2. Configured the new domain to forward all requests to my AWS domain.

In this setup, I had 0 errors in 100 requests. But when Nightbot talks directly to my AWS domain, I get an error once every 2-3 requests.

I'm still experiencing this and I'm completely stuck. Is there really no way to tell what kind of error NIghbot is getting instead of the generic "Error Connecting To Remote Server"? I can't find any logs on AWS side of Nightbot trying to connect and I cannot reproduce this error outside of Nighbot