-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scheduleinstance error #1451
Comments
@harryliu123 👋 Thanks for reporting the issue! @djmailhot Could you please have a look at this? Seems like there's a problem with the |
Over to @djmailhot, who owns this sample (per CODEOWNERS) 🙂
…On Sun, Sep 1, 2019, 7:28 AM F. Hinkelmann ***@***.***> wrote:
@harryliu123 <https://github.com/harryliu123> 👋 Thanks for reporting the
issue!
@ace-n <https://github.com/ace-n> Could you please have a look at this?
Seems like there's a problem with the functions/scheduleinstance sample.
Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1451?email_source=notifications&email_token=AARTZRPCG22NDMTO7MWV5ALQHPGPPA5CNFSM4IL3IF52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5UDPPA#issuecomment-526923708>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARTZROFVRY6KXQZM23Z743QHPGPPANCNFSM4IL3IF5Q>
.
|
Ping @djmailhot |
@harryliu123, the data encoding string you used has a JSON formatting error. yours: corrected: Additionally, this code sample has been updated to use resource labels instead of instance names. See the instance scheduling tutorial to learn how to use resource labels with this code sample. |
git clone https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git
cd nodejs-docs-samples/functions/scheduleinstance/
gcloud functions deploy startInstancePubSub
--trigger-topic start-instance-event
--runtime nodejs8
test functions error
gcloud functions call startInstancePubSub --data '{"data":"eyJ6b25lIjphc2lhLWVhc3QxLWMsImluc3RhbmNlIjoic2NhbGVvdXQtam9idm0ifQo="}'
error: |-
Error: function execution failed. Details:
Unexpected token a in JSON at position 8
The text was updated successfully, but these errors were encountered: