Questions tagged [gcloud-node]

gcloud-node is the Google Cloud Client Library for Node.js - an idiomatic, intuitive, and natural way for Node.js developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.

gcloud-node lets you interact with Google Cloud services, such as Datastore and Storage.

Quick Start

$ npm install --save gcloud

Resources

96 questions
30
votes
5 answers

Uploading a buffer to google cloud storage

I'm trying to save a Buffer (of a file uploaded from a form) to Google Cloud storage, but it seems like the Google Node SDK only allows files with a given path to be uploaded (Read / Write streams). This is what I have used for AWS (S3) - is the…
Ash
  • 6,483
  • 7
  • 29
  • 37
10
votes
2 answers

Move/rename folder in Google Cloud Storage using nodejs gcloud api

I am trying to rename or move a folder in google cloud storage using the gcloud api. A similar question explains how to delete a folder: Delete folder in Google Cloud Storage using nodejs gcloud api But how can one rename a folder? or move to…
tomermes
  • 22,950
  • 16
  • 43
  • 67
10
votes
2 answers

not able to perform gcloud init inside dockerfile

I have made a Dockerfile for deploying my node.js application into google container engine .It looks like as below FROM node:0.12 COPY google-cloud-sdk /google-cloud-sdk RUN /google-cloud-sdk/bin/gcloud init COPY bpe /bpe CMD cd /bpe;npm start I…
9
votes
2 answers

Get app-engine's current instance id in node.js

Is there any way to get the current instance id from app-engine in node.js? I found solutions only for java and python but nothing for node.
8
votes
4 answers

Delete multiple objects fron google cloud storage using node.js

I need to delete multiple objects from google cloud storage. I have deleted one object at a time. This is my code: var gcloud = require('gcloud')({ projectId: "sampleProject1" }); var gcs = gcloud.storage(); var myBucket =…
Abdul Manaf
  • 4,933
  • 8
  • 51
  • 95
8
votes
1 answer

(gcloud.preview.app.deploy) Error Response: [13] Managed VMs can not be hosted in the application's region

I have followed the tutorial https://cloud.google.com/nodejs/getting-started/hello-world (deploying to Google Cloud Platform hello world application on node.js) and after last command: $ gcloud preview app deploy app.yaml --promote I get: Copying…
MykolaSharhan
  • 396
  • 7
  • 15
8
votes
3 answers

How to fix "`The --custom_entrypoint flag must be set for custom runtimes`"?

I get this error on appengine when I run gcloud preview app run app.yaml: The --custom_entrypoint flag must be set for custom runtimes My app.yamllooks like: version: 0-1-1 runtime: custom vm: true api_version: 1 manual_scaling: instances:…
eloone
  • 4,248
  • 2
  • 32
  • 35
6
votes
2 answers

Delete folder in Google Cloud Storage using nodejs gcloud api

I am using gcloud nodejs api to access Google Cloud Storage. I can save/delete/exists files individually, but I didn't find a way to delete a folder or even to list the files in a folder using gcloud nodejs api. I have seen people say that the…
Yuqing
  • 333
  • 3
  • 13
6
votes
1 answer

gcloud nodejs datastore: how to create an entity with a parent?

How to create an entity with a parent using gcloud, datastore and nodejs? How to search for all the entities with a given parent? Something like (this does not work): var path = [{kind: 'Parent', id: parentId}, {kind: 'Me'}]; var key =…
allergique
  • 73
  • 5
5
votes
2 answers

Why can't I use ENV variables with Firebase functions

Why can't I use env variables as I would with Google Cloud Functions? As I understand, Firebase functions sit on top of Google Cloud. With Firebase functions you can use environment configuration but is not the same. I have done both implementations…
ajorquera
  • 1,297
  • 22
  • 29
5
votes
3 answers

gcloud check if a topic exist and ability to reuse the topic

I'm using gcloud-node. createTopic api returns error 409, if that topic exist already. Is there a flag that can implicitly create a topic when publishing a message or Is there an API to check if a topic exist already? Its easy to use getTopics API,…
Sahas
  • 3,046
  • 6
  • 32
  • 53
5
votes
1 answer

How to set the Content-Type for a file being uploaded to Google Cloud Storage using node.js

I'm writing code that uploads a file that was fetched using node-fetch to a bucket in Google Cloud Storage using gcloud-node. So far everything works out, but I'm having trouble finding out how to set the Content-Type for the file on GCloud,…
andreban
  • 4,621
  • 1
  • 20
  • 49
5
votes
3 answers

Debugging a node app on gcloud to fix 500 server error

We've got a hefty little node app and wanted to try out the google cloud deployment suite to get it online, however our deployments are always resulting in a page with a 500 server error. Normally I'd provide more information, errors, etc, but I…
4
votes
1 answer

gcloud error: ApiError: Not Found at new util.ApiError

Anyone familiar with this gcloud exception: ApiError: Not Found at new util.ApiError (/site/node_modules/gcloud/lib/common/util.js:128:10) at Object.parseHttpRespBody (/site/node_modules/gcloud/lib/common/util.js:206:30) at …
Akrion
  • 18,117
  • 1
  • 34
  • 54
4
votes
1 answer

Node pagination in google datastore

I am having trouble doing the pagination with Google Datastore. I have a query which without the limit has a few hundred results. I would like to retrieve 5, send them back to the user, if the user wants more they would retrieve the next 5.…
1
2 3 4 5 6 7