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
20
votes
4 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
  • 5,093
  • 6
  • 23
  • 37
8
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
  • 21,672
  • 15
  • 39
  • 61
8
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…
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,355
  • 6
  • 35
  • 81
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
  • 344
  • 5
  • 13
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
  • 3,888
  • 2
  • 27
  • 32
7
votes
1 answer

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.
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

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
  • 323
  • 2
  • 11
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
  • 15,757
  • 1
  • 27
  • 43
4
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
  • 3,575
  • 1
  • 16
  • 40
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.…
3
votes
0 answers

Google Cloud PubSub - implement pull

I am using google pub sub in nodejs. I have a service which publishes messages, and then a worker which listens to the messages and implements some processes on the messages. Now I want my service to pull five subscription at a time and pull…
dina
  • 3,060
  • 5
  • 26
  • 52
3
votes
1 answer

Memory leak in NodeJS + GCloud logging

I have been finding memory leak in our production code for 2 weaks. At the end I reproduced the memory leak with simple nodejs server and gcloud logging api. Nodejs server is the same as inside Nodejs Getting Started Guide 'use strict'; const http…
mmurygin
  • 53
  • 5
1
2 3 4 5 6 7