-
Notifications
You must be signed in to change notification settings - Fork 641
Closed
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.
Description
This is an incredibly strange bug.
const storage = require('@google-cloud/storage')
const path = require('path')
let gcs = storage({
projectId: 'myid',
keyFilename: path.join(__dirname, 'keyfile.json')
})
const bucket = gcs.bucket('test')
const putFile = filename => bucket.file(filename).createWriteStream()
let t = putFile('test.webm')
t.write('asdf')
t.end()Results in:
Error: Not Found
at Request._callback (/Users/mikeal/git/shaolin/node_modules/gcs-resumable-upload/index.js:274:25)
at Request.self.callback (/Users/mikeal/git/shaolin/node_modules/request/request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
at Request.<anonymous> (/Users/mikeal/git/shaolin/node_modules/request/request.js:1045:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at IncomingMessage.<anonymous> (/Users/mikeal/git/shaolin/node_modules/request/request.js:966:12)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
If you replace 'test.webm' with 'test.txt' or just some random stuff like 'dfasfdaisdf' it'll work fine.
The exception comes out of request but I can't figure out what is different, and I wrote request ;(
This isn't because the data being written isn't a valid .webm file because I found this bug attempting to PUT real files.
Metadata
Metadata
Assignees
Labels
api: storageIssues related to the Cloud Storage API.Issues related to the Cloud Storage API.