Giter Club home page Giter Club logo

Comments (10)

YGKtech avatar YGKtech commented on August 15, 2024 1

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

lukesneeringer avatar lukesneeringer commented on August 15, 2024

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.

stephenplusplus avatar stephenplusplus commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.