Skip to content

CANNOT SUBMIT SCORES FOR ROUND: TypeError: fetch failedΒ #386

@bajtos

Description

@bajtos

See https://space-meridian.slack.com/archives/C06S76341B8/p1729625786622019

Oct 22 19:34:20Z 9b22 vector spark-evaluate CANNOT SUBMIT SCORES FOR ROUND 17748n: TypeError: fetch failed
Oct 22 19:34:20Z 9b22 vector spark-evaluate     at node:internal/deps/undici/undici:12502:13
Oct 22 19:34:20Z 9b22 vector spark-evaluate     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Oct 22 19:34:20Z 9b22 vector spark-evaluate     at async setScores (file:///app/lib/submit-scores.js:11:15)
Oct 22 19:34:20Z 9b22 vector spark-evaluate     at async evaluate (file:///app/lib/evaluate.js:122:5) {
Oct 22 19:34:20Z 9b22 vector spark-evaluate   [cause]: [Error]
Oct 22 19:34:20Z 9b22 vector spark-evaluate }

Unfortunately, the log message does not show any details about the cause, so we cannot tell what exactly happened.

Suggested improvements to consider:

  1. Improve formatting so that the error cause is expanded in the log message (maybe%o will do the trick?) or unwrap the cause from the β€œfetch failed” error.
  2. Wrap the fetch() call in pRetry to handle intermittent failures

/cc @juliangruber This error happened only once, so the issue is not urgent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions