Skip to content

Server hangs on no such file #5

@j3ll3nl

Description

@j3ll3nl

When using Hydbrid disk cache in combination with next-boost sometimes we got currupt files ending up in the following error. I think we should catch this.

(node:67992) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/tmp/boost/5e/fe/cbc7e7aa02d9161d7897ac88571f.v'
    at Object.openSync (fs.js:462:3)
    at Object.readFileSync (fs.js:364:35)
    at Object.read (/Users/j/node_modules/hybrid-disk-cache/dist/utils.js:53:31)
    at Cache.get (/Users/j/node_modules/hybrid-disk-cache/dist/index.js:58:32)
    at Object.<anonymous> (/Users/j/node_modules/next-boost/dist/cache-manager.js:48:34)
    at Generator.next (<anonymous>)
    at /Users/j/node_modules/next-boost/dist/cache-manager.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/Users/j/node_modules/next-boost/dist/cache-manager.js:4:12)
    at Object.serveCache (/Users/j/node_modules/next-boost/dist/cache-manager.js:35:12)

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