Skip to content

How do I get more information about failing uploads? #2633

@christhegrand

Description

@christhegrand

Some of our servers crashed overnight when trying to upload data to GCS. The error was:

error: {
message: "Retry limit exceeded - """
name: "Error"
stack: "Error: Retry limit exceeded - ""
    at Upload.attemptDelayedRetry (/home/node/app/Backend/node_modules/@google-cloud/storage/build/cjs/src/resumable-upload.js:822:26)
    at Upload.onResponse (/home/node/app/Backend/node_modules/@google-cloud/storage/build/cjs/src/resumable-upload.js:786:18)
    at Upload.makeRequestStream (/home/node/app/Backend/node_modules/@google-cloud/storage/build/cjs/src/resumable-upload.js:772:40)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Upload.startUploading (/home/node/app/Backend/node_modules/@google-cloud/storage/build/cjs/src/resumable-upload.js:573:26)"
}

The actual reason why the uploads were failing is missing, though. Do I need to change something in the library's configuration to log that data? And what is the default retry limit value?

I am on version 7.14.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: storageIssues related to the googleapis/nodejs-storage API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions