logoalt Hacker News

elendilm • yesterday at 1:43 AM • 3 replies • view on HN

I never found Deno compelling enough compared to Node.

Bun was promising, but as long as they don't fix their http GET implementation to accept the request body, its broken for me.

Note: Many real world tools like Elasticsearch's GET /_search with a JSON query DSL is one example. It breaks Axios. Many custom infrastructure tools expect it.

Advertising as node compatible and having this breaking change is undesirable. Hope it gets fixed soon.


Replies

HumanOstrich • yesterday at 2:00 AM

You shouldn't be sending a body with a GET request. Sounds like your code is broken.

➕ show 1 reply
zahlman • yesterday at 2:38 AM

Enabling the GET implementation to "accept the request body" would literally be the opposite of fixing it. The broken thing here is your expectation. You are looking for POST (or possibly PUT).

➕ show 2 replies
zja • yesterday at 2:18 AM

They just implement the fetch api from the web, does the fetch api allow get’s to have a body?

➕ show 1 reply