Skip to content

RangeError [ERR_OUT_OF_RANGE]: The value of "start" is out of range. It must be an integer. Received NaN #190

@natew

Description

@natew

Seeing this error suddenly but no idea where it's coming from, hard for me to replicate as it's only in production on a decent sized stack, I've upgraded to latest versions "hono": "^4.5.8", and "@hono/node-server": "^1.12.1",:

RangeError [ERR_OUT_OF_RANGE]: The value of "start" is out of range. It must be an integer. Received NaN

at ReadStream (node:internal/fs/streams:206:5)

at createReadStream (node:fs:3079:10)

at file:///app/node_modules/@hono/node-server/dist/serve-static.mjs:89:20

at file:///app/node_modules/vxrn/dist/exports/createServer.mjs:10:7

at dispatch (file:///app/node_modules/hono/dist/compose.js:29:23)

at file:///app/node_modules/hono/dist/compose.js:30:20

at compress2 (file:///app/node_modules/hono/dist/middleware/compress/index.js:5:11)

at dispatch (file:///app/node_modules/hono/dist/compose.js:29:23)

at file:///app/node_modules/hono/dist/compose.js:6:12

at file:///app/node_modules/hono/dist/hono-base.js:200:31

at Hono.dispatch (file:///app/node_modules/hono/dist/hono-base.js:210:7)

at fetch (file:///app/node_modules/hono/dist/hono-base.js:213:17)

at Server.<anonymous> (file:///app/node_modules/@hono/node-server/dist/index.mjs:407:13)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions