Cannot POST to worker service
My worker A (using Hono) has GET and POST endpoint like so:
In my worker B the code below successfully connect to worker A:
But when B tries to talk to A using POST:
it always error:
3 Replies
Are you doing
wrangler dev
?Yes,
wrangler dev
.
Ty, will try.c.req is not the raw request object
you need to make a fetch request using a
Request
object here, and not hono's modified/parsed one
@muslax
that shouldn't be the issue here if you take a look at the error message