Requests from Cloudflare Workers to external API result to 520

Hi, When making a request to my API from cloudflare workers it returns 520. URL: https://api.staging.us.modeinspect.com/ When making the request from anywhere else (browser, curl, postman...) it works just fine. (although you will get 404 for this route but I would expect that would not trigger the 520 from cloudflare) Some notes: - DNS is managed by Cloudflare. api.staging.us has single A record that points to googles external load balancer. - From what I can tell, the request does not even reach googles load balancer as I see no network activity in there. - Request are done from Nuxt server using https://github.com/unjs/ofetch
1 Reply
hackal
hackalOP2d ago
In the end I found that the issue was with "Encryption Mode". I changed it to Full and now it works.

Did you find this page helpful?