follow the discord api specs dont just randomly add headers
follow the discord api specs
dont just randomly add headers
dont just randomly add headers
wrangler deploy --dry-run --outdir dist

Request.cf.continent?
workers.dev domain that was returning HTTP 520 Bad Gateway for POST/PUT/PATCH requests? Seems to be resolved now.standard placement – I also had a huge uptick the last couple days in 520s on our API specifically affecting random users.

workers.dev domain are failing with 520. Requests against custom domains seem to function normally.remote-SEA.POST https://api-dev.hhc.workers.dev. That would normally give you 404 from the worker except it isn't even reaching the worker (no logs), instead 520.curl --request POST --url https://api-dev.hhc.workers.dev/ --header 'Content-Type: application/json' --header 'User-Agent: insomnia/2023.5.8' --data '{}' -vvv< HTTP/2 404
< date: Tue, 27 Aug 2024 21:44:09 GMT
< content-type: text/plain;charset=UTF-8
< content-length: 23
< cache-control: private, no-store
< cf-placement: remote-SEA
< report-to: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=tZaSH8jYa0BFaB%2Bmmq%2BSBFg2i9tN%2BNx3GXyaAe2cI65i0LiPX4YodMyfQKb1otEwjeh46Av5w4WE93VbpQzhmPIZlGlTEn3V7KzQiTS4XbhHlhDe8Pj5B7Kj3UChSwgMSifL4n778Xxe%2BQ%3D%3D"}],"group":"cf-nel","max_age":604800}
< nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
< server: cloudflare
< cf-ray: 8b9f3dbf9ba841a6-EWR
< alt-svc: h3=":443"; ma=86400
{"message":"Not Found"}

Bad Gateway.Content-Length: 0 header:curl -i https://api-dev.hhc.workers.dev --header 'Content-Length: 0'Maybe it's because you're hitting AKL? Do you always get 520's with that or just sometimes? The fact that it has cf-placement seems like it's getting to SEA and wouldn't be colo-specific tho
HTTP/2 404
date: Tue, 27 Aug 2024 21:52:24 GMT
content-type: text/plain;charset=UTF-8
content-length: 23
cache-control: private, no-store
cf-placement: remote-SEA
report-to: {"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=mgSlH9e9mLRJNTkvw8TtayWcmmpz1mkZO1vbMMv9xFVajVdHaQDm4JvRQ6kRImJgwsvUaRpAyVjMOhuTsmfSYO5H5v8AVBe9RKV9YznggMdXwMYicrltGl8OLUz8Trn7vYFROWgikON5LA%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 8b9f49d5aa9f0cc0-EWR
alt-svc: h3=":443"; ma=86400
remote-SEAPOST https://api-dev.hhc.workers.devcurl --request POST --url https://api-dev.hhc.workers.dev/ --header 'Content-Type: application/json' --header 'User-Agent: insomnia/2023.5.8' --data '{}' -vvvBad GatewayContent-Length: 0% curl -i https://api-dev.hhc.workers.dev --header 'Content-Length: 0'
HTTP/2 520
date: Tue, 27 Aug 2024 21:50:25 GMT
content-type: text/plain;charset=UTF-8
content-length: 11
cf-placement: remote-SEA
report-to: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=j51afelgSe9%2FfmZXkPa9RvAJi7U2pWUpArXDewyLBkKu0sqdUNZzQfrHbo7KzZ3v1ckABzd14UCS30SF5UIObVLlOk7ATBmn5KNLT9yqPHZzJZQbAqQ7hUnKWrNZY6BtuL0xRSeyWcBQ9uXS4kqsul7hQ77DDQ%3D%3D"}],"group":"cf-nel","max_age":604800}
nel: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
server: cloudflare
cf-ray: 8b9f46efedd31c4d-AKL
alt-svc: h3=":443"; ma=86400
Bad Gateway