Cloudflare DevelopersCD
Cloudflare Developers10mo ago
1 reply
Tobias

CF workers w/ hono-openapi deploy randomly failing with error code 10002

My setup is Hono + CF Vite Plugin

https://github.com/rhinobase/hono-openapi/issues/111

Seems to be related to this dependency: https://www.npmjs.com/package/@apidevtools/json-schema-ref-parser
Removing it from the code by patching it out fixes the deploy.
GitHub
I personally have no idea how much this is related to my own environment, and this is more or less a PSA for people coming over the same issue. The @apidevtools/json-schema-ref-parser subdependency...
Deploy on CF workers erroring with code 10002 · Issue #111 · rhin...
npm
Parse, Resolve, and Dereference JSON Schema $ref pointers. Latest version: 12.0.1, last published: 25 days ago. Start using @apidevtools/json-schema-ref-parser in your project by running
npm i @apidevtools/json-schema-ref-parser
. There are 425 other projects in the npm registry using @apidevtools/json-schema-ref-parser.
@apidevtools/json-schema-ref-parser
Was this page helpful?