bret_pat
04/14/2023, 5:59 AMHardAtWork
04/14/2023, 6:01 AMbret_pat
04/14/2023, 6:03 AMbret_pat
04/14/2023, 6:04 AMHardAtWork
04/14/2023, 6:05 AMHardAtWork
04/14/2023, 6:06 AMHardAtWork
04/14/2023, 6:06 AMHardAtWork
04/14/2023, 6:07 AMjohannes
04/14/2023, 6:17 AM"GET /api/health HTTP/1.1" 404 19 "-" "-" 331 "-" "-" 0ms
(worker running locally): "GET /api/health HTTP/1.1" 200 41 "-" "-" 355 "pb1@docker" "http://172.24.0.5:8090" 1ms
I notice that all the requests initiated from the deployed worker (even those with a body etc) all have only 19 bytes
request size. It's a long shot, but what are your thoughts on that?kian
04/14/2023, 6:20 AMkian
04/14/2023, 6:20 AMfetch
code looks likejohannes
04/14/2023, 6:25 AMconst x = await fetch("https://db-dev.textmait.se/api/health");
console.log("Health", x.status);
johannes
04/14/2023, 6:25 AMjohannes
04/14/2023, 6:28 AMjohannes
04/14/2023, 6:36 AMjohannes
04/14/2023, 6:40 AMroute = { pattern = "api2.textmait.se", custom_domain = true, zone_id = "xxx" }
to my wrangler config, the requests fail. Any pointers to how my config is wrong?kian
04/14/2023, 6:42 AMtextmait.se?
kian
04/14/2023, 6:42 AMjohannes
04/14/2023, 6:43 AMdb-dev.textmait.se
is an A record pointing to my server, api2.textmait.se
is managed by CF to point to the worker.kian
04/14/2023, 6:43 AMtoml
# https://github.com/cloudflare/workers-sdk/issues/2659
compatibility_flags = ["no_minimal_subrequests"]
to your wrangler.tomlkian
04/14/2023, 6:44 AMjohannes
04/14/2023, 6:47 AMkian
04/14/2023, 6:47 AMjohannes
04/14/2023, 6:50 AMkian
04/14/2023, 6:50 AMfoo.com
has never been able to fetch anything else on foo.com
kian
04/14/2023, 6:50 AMfoo.com
kian
04/14/2023, 6:50 AMminimal_subrequests
(default as of 2022-04-05
) broke thatjohannes
04/14/2023, 6:51 AMjohannes
04/14/2023, 6:51 AM