-
Notifications
You must be signed in to change notification settings - Fork 678
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.
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.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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 })