-
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
Help with token service GCF #1611
Labels
type: question
Request for information or clarification. Not an issue.
Comments
fhinkel
added
type: question
Request for information or clarification. Not an issue.
and removed
triage me
I really want to be triaged.
labels
Feb 25, 2020
Closing this issue due to inactivity. Please re-open if needed. |
This was referenced Jul 31, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am following the token service tutorial: https://cloud.google.com/solutions/mobile/token-service-oauth
And this code:
https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/master/functions/tokenservice
But i'm getting an error like this when i try to call the function endpoint Passing the deviceID:
Invalid request IncomingMessage { _readableState: ReadableState { objectMode: false, highWaterMark: 16384, buffer: BufferList { head: null, tail: null, length: 0 }, length: 0, pipes: null, pipesCount: 0, flowing: null, ended: true, endEmitted: false, reading: false, sync: true, needReadable: false, emittedReadable: true, readableListening: false, resumeScheduled: false, destroyed: false, defaultEncoding: 'utf8', awaitDrain: 0, readingMore: true, decoder: null, encoding: null }, readable: true, domain: null, _events: { end: [Function: resetHeadersTimeoutOnReqEnd] }, _eventsCount: 1, _maxListeners: undefined, socket: Socket { connecting: false, _hadError: false,
I am calling it from Android device using similar this:
{url}.cloudfunctions.net/getOAuthToken?deviceID={Number of my device ID}
I am wrong? On the Google tutorial nobody mention how we should request this url.
Appreciate your help here,
Thank you!
The text was updated successfully, but these errors were encountered: