snaily-cadv4: Cloudflare continuing to return Error 520, but for a different reason.
What version of Node.js are you using?
v16.13.0
What version of npm are you using?
8.1.3
What operating system are you using?
Ubuntu Server 20.04
Describe the Bug
When using Cloudflare’s proxying and SSL service with the API, Cloudflare returns Error 520: Web server is returning unknown error
This doesn’t allow the CAD to connect to the API, with the console returning the same Error 520. When connecting to the API, it does return a 200 OK, but that isn’t sufficient for Cloudflare.
Expected Behavior
A displayed webpage, as such.
Due to how Cloudflare (in my experience) checks to see if your server is responding, it requires a displayed web page, or, it responds with an Error 520.
To Reproduce
It would be kind of hard to reproduce this. But, if you wish to try, you’re going to need a valid domain, a Cloudflare account, Kemp LoadMaster (I have the free tier), and a lot of time on your hands. But, I did find why the issue is occurring, so, probably no need for that.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 21 (11 by maintainers)
Commits related to this issue
- :hammer: return html over json (#153) — committed to SnailyCAD/snaily-cadv4 by casperiv0 3 years ago
It is an HTML file, yes. It doesn’t really matter how it’s done, or what it says, it just needs a webpage.