You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Request body methods (json/text/arrayBuffer) not callable as a value / via computed key (typeof is 'object'/'undefined') #1698
This blocks Hono's c.req.json() end-to-end (#1655): Hono's HonoRequest.#cachedBody does raw[key]() (computed-key call), which yields undefined → throws value is not a function. The POST /api/echo route reaches the handler (status 200) but await c.req.json() throws.
Likely fix
Expose Request.json / .text / .arrayBuffer (and .blob/.formData) as bound-method values the way the same gap was closed for native-module methods (#1343 / #1367 / #1368 / #1380) — so typeof req.json === 'function' and req['json']() dispatches. There's likely no untyped dispatch_request_method for the body methods (the typed codegen module=="Request" arm only handles url/method/body/headers properties + the direct .json()/.text() calls added in #1688).
Activity
fix(fetch): Request body methods callable as value / computed key (#1698
fix(fetch): Request body methods callable as value / computed key (#1698
fix(lockdown): #503 guard must not fire on locals shadowing a stdlib …