Comments (10)
I encountered this issue while attempting to use the firebase-admin node module's storage bucket. I'm not sure if that's the case with other's who've reported this issue, but I noticed that firebase-admin specifies version 1.2.1
of @google-cloud/storage in it's dependencies.
When I installed the current version (1.3.0) and connected directly to the storage bucket everything worked perfectly.
This may not be the source of the problem for everyone, but it seems probably that at least a few users will encounter this issue while using the firebase module.
from nodejs-storage.
From @stephenplusplus on August 28, 2017 16:22
Hello, @c00kie17, can you fill in the details about your environment?
- OS:
- Node.js version:
- npm version:
- google-cloud-node version:
Thanks!
from nodejs-storage.
Note: The OP edited it into his original post. (I almost missed that.)
With #2582, this is the second report in three days that are npm 5.3.0. Different operating systems, but consistently Node 8.4 and npm 5.3.0.
from nodejs-storage.
From @stephenplusplus on September 7, 2017 13:24
@c00kie17 would you mind going into the file, C:\Users\anshu\Desktop\statseeker\node_modules\gcs-resumable-upload\index.js
, adding a console.log(authorizedReqOpts)
on line 275, then pasting the response here? (You can remove the Authorization: 'Bearer y.2....'
line from the output)
from nodejs-storage.
From @DennisDukh on September 7, 2017 13:48
{ method: 'POST',
uri: 'https://www.googleapis.com/upload/storage/v1/b/my_project_id/events/new_player/o',
qs:
{ name: 'file.csv',
uploadType: 'resumable',
predefinedAcl: 'publicRead' },
json: { contentType: 'image/jpeg', metadata: { custom: 'metadata' } },
headers:
{ 'X-Upload-Content-Type': 'image/jpeg',
Authorization: 'Bearer <REDACTED>' } }
from nodejs-storage.
From @DennisDukh on September 7, 2017 13:53
OS: Windows 7
Node.js version: 6.9.5
npm version: 3.10.10
from nodejs-storage.
From @stephenplusplus on September 7, 2017 18:40
I believe the path should be: https://www.googleapis.com/upload/storage/v1/b/your_bucket_name
Can you show how you create the Bucket object?
from nodejs-storage.
From @c00kie17 on September 8, 2017 5:12
The bucket object is already created im not creating it in my code. I created it manually from the google cloud console.
from nodejs-storage.
From @stephenplusplus on September 8, 2017 12:40
Sorry, I meant the @google-cloud/storage "Bucket", i.e.:
var storage = require('@google-cloud/storage')
var bucket = storage.bucket('...')
var file = bucket.file('...')
It seems like the argument passed to storage.bucket()
and/or storage.file()
might be incorrect. In a typical scenario, this should look like:
var bucket = storage.bucket('my-bucket-name')
var file = bucket.file('my-file-name')
If the file is in a folder, it would look like:
var bucket = storage.bucket('my-bucket-name')
var file = bucket.file('my-folder-name/my-file-name')
from nodejs-storage.
Thanks for the info! This is likely the same problem that we solved after the investigation here: googleapis/google-cloud-node#2604
It's already available to new installations of @google-cloud/storage
. Considering that, I'm going to close this issue. Let us know if any errors continue.
from nodejs-storage.
Related Issues (20)
- CreateBucketRequest type is misaligned with JSON API
- storage HMAC keys: should get metadata for an HMAC key failed HOT 2
- storage HMAC keys: should make the key INACTIVE failed HOT 2
- tests: move HMAC system tests to use emulator
- storage bucket hierarchical namespace: should create a bucket without hierarchical namespace enabled (explicit) failed HOT 1
- Missing interface's property HOT 4
- storage HMAC keys: should delete the key failed
- Signed URL prefix HOT 1
- preconditions not working HOT 2
- File.save sometimes returns a Promise that never rejects or resolves HOT 10
- storage HMAC keys: should delete the key failed HOT 2
- File.save() with a Uint8Array fails HOT 9
- storage HMAC keys: should make the key INACTIVE failed HOT 4
- chore: remove internalTooling from eslint ignores once >= node 16
- How to set destination while using uploadManyFiles in TransferManager HOT 4
- Unhandled Error in startResumableUpload_ Function
- storage HMAC keys: should get metadata for an HMAC key failed HOT 1
- storage HMAC keys: should make the key INACTIVE failed HOT 1
- storage HMAC keys: should delete the key failed HOT 1
- Security vulnerability with fast-xml-parser dependency
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodejs-storage.