Fixed .NET WEBAPI Error 524 + 403 When Call Local LLM Server be hide Cloudflare Tunnel

For today’s blog, I just want to jot down a quick note. I set up a local LLM server, managed it through LiteLLM, and exposed it to the outside world via a domain on a Cloudflare Tunnel. Then I noticed that the web api kept getting a 524 error. When I dug through the logs, I found that the request from the web API to the local LLM server (through Cloudflare) was actually getting a 403. The reason it surfaced as a 524 is that my .NET API wasn’t written well: after receiving the 403, it just kept waiting instead…








