Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add operation timeout option #1206

Closed
pebo opened this issue May 29, 2020 · 0 comments · Fixed by #1208
Closed

Add operation timeout option #1206

pebo opened this issue May 29, 2020 · 0 comments · Fixed by #1208
Assignees
Labels
api: storage Issues related to the googleapis/nodejs-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@pebo
Copy link

pebo commented May 29, 2020

We're occasionally seeing very long times (>6minutes) for operations trying to write tiny 90byte files to GCS which then throws the exception mentioned in #833. The services getting the errors are hosted on managed Cloud Run.

The code that (occasionally) triggers the timeout is basically:

    const someObject = { key: "value" };
    const options = {
      resumable: false,
      contentType: 'application/json'
    };
    await file.save(JSON.stringify(someObject), options);

It would be useful to be able to set the timeouts explicitly to a lower value, e.g. 30 seconds rather than 6 minutes.

@product-auto-label product-auto-label bot added the api: storage Issues related to the googleapis/nodejs-storage API. label May 29, 2020
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label May 30, 2020
@jkwlui jkwlui added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. and removed triage me I really want to be triaged. labels Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/nodejs-storage API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants