Skip to content

Sentry: APOLLO-3H (failed to fetch docs) #377

@josephjclark

Description

@josephjclark

Database caching of adaptor docs is failing on apollo, which is slowing down requests.

We're seeing this error:

TypeError: targetModule.load is not a function. (In 'targetModule.load(targetModule.id)', 'targetModule.load' is undefined)
      at load (/app/node_modules/requizzle/lib/loader.js:102:16)
      at requizzle (/app/node_modules/requizzle/lib/requizzle.js:96:27)
      at <anonymous> (/app/node_modules/requizzle/index.js:22:21)
      at <anonymous> (/app/node_modules/jsdoc/jsdoc.js:31:5)
      at <anonymous> (/app/node_modules/jsdoc/jsdoc.js:34:36)

https://openfn.sentry.io/issues/7252289368/events/?environment=production&project=4509824591069184&query=is%3Aunresolved&referrer=issue-stream

Claude thinks that bun.js doesn't support Module.load. I see no evidence of that looking at the docs and searching around.

This works absolutely fine for me locally, no problem at all. I believe Hanna can repro the problem locally.

Options:

  • Can we roll back to an in-memory cache?
  • Try using typedoc instead of jsdoc in the adaptor build - this might workaround the problem cheaply
  • Continue trying to reproduce locally

Metadata

Metadata

Assignees

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