Hi everyone I m having trouble sending
Hi everyone, I'm having trouble sending some analytics events to my server hosted in Azure. I keep getting
522
timed out or 521
responses. I've verified that the server is externally accessible and have been able to hit the endpoint from several other locations but it fails every time only in my Cloudflare Workers. I have added a firewall rule to allow all CF IP addresses as well.
I'm at a loss of how to proceed now. Would love some ideas!
Note: It's on http://myserver:8000 address. Could the port or lack of https cause connectivity issues w/ CF? I know we can't fetch IP addresses directly w/ CF Workers but curious if there are other limitations that could be causing these issues2 Replies
Answered my own question about using http vs https. Looks like you can't use https w/ a custom port anyway:
WARNING: known issue with 'fetch()' requests to custom HTTPS ports in published Workers: requests to custom HTTPS ports in published Workers
Which still leaves me wondering why the http call is getting a 522/521 when its a publicly accessible server
Just an FYI - some further research looks like there are limitations w/ CF workers in production when calling non-standard ports :\Yea, if you can make a CNAME in your zone pointing to your server, might work for you. Follow this flowchart: