Skip to content

Google Cloud Functions Cloud Datastore sample error #929

@jamie-chapman

Description

@jamie-chapman

The tutorial in https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/functions/datastore

Example appears to not accept the sample JSON object in the function "gcloud functions call set --data '{"kind":"Task","key":"sampletask1","value":{"description":"Buy milk"}}'".

The error below is given.

ERROR: (gcloud.functions.call) Invalid value for [--data]: Is not a valid JSON: No JSON object could be decoded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions