Repository navigation
Storage non-resumable uploads fail #2050
Copy link
Copy link
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.coretype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Activity
- addedapi: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
on Mar 6, 2017 Thank you for catching this and debugging it! I just put through a fix: a1edaab -- does this look good?
Reacted by Dave Dunkin and Andrew OloboReacted by Andrew OloboThis bug is still active. google-cloud-node version:"0.7.0", default storage.bucket('my-bucket').upload('file.txt') does not upload .Must explicitly add resumable flag for upload storage.bucket('my-bucket').upload('file.txt', { resumable: true }) .
This code works for me with
@google-cloud/[email protected]:var storage = require('@google-cloud/storage')() var bucket = storage.bucket('stephen-has-a-new-bucket') bucket.upload('package.json', console.log) // no error
Can you make sure you
rm -rf node_modules && npm install --save @google-cloud/storage@^0.7.0and let me know if it persists? If you can, a reproducible test gist that I can clone, install, and run to see the crash would help.- added 2 commits that reference this issue
on Mar 17, 2026 - added a commit that references this issue
on Mar 18, 2026
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.coretype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Storage non-resumable uploads fail when used with
@google-cloud/common0.12.1. The error message is:The error message is misleading. The code mistakenly assumes any error thrown
util.makeAuthenticatedRequestFactory -> makeAuthenticatedRequest -> onAuthenticatedis because of a missing project ID.The bug that causes the error was introduced by #1990.
hasOwnPropertyis called on an object that does not have that function. An alternative implementation would be to callObject.hasOwnProperty.call(value, opt)instead ofvalue.hasOwnProperty(opt).Environment details
Steps to reproduce
google-cloudstorage.bucket('my-bucket').upload('file.txt', { resumable: false })