Weird bug: JSON data not making it to server: RPC
Hi all,
I am sending some data to my Hono server like so:
And getting the data on my server like so:
But apparently I am getting
undefined
for all the data, attached are screenshots of my network requests. Clearly it is getting data...., so i am not sure what to do or how to troubleshoot this.
My intellisense is working fine and autocomplete works.
Thanks!2 Replies
Is c.req.json present if you remove the validator middleware?
Couple of things you can try - 1. Use something like Postman to send the POST request 2. Try removing the validator and checking the json body 3. Check your validation