Skip to content
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

Closed
mhr78 opened this issue Feb 21, 2020 · 2 comments
Closed

Help with token service GCF #1611

mhr78 opened this issue Feb 21, 2020 · 2 comments
Assignees
Labels
type: question Request for information or clarification. Not an issue.

Comments

@mhr78
Copy link

mhr78 commented Feb 21, 2020

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!

@mhr78 mhr78 changed the title Help with token service gif Help with token service GCF Feb 21, 2020
@yoshi-automation yoshi-automation added the triage me I really want to be triaged. label Feb 22, 2020
@fhinkel 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
@fhinkel
Copy link
Contributor

fhinkel commented Feb 25, 2020

👋 @mhr78 Thanks for opening the issue. @nnegrey could you have a look please. Thanks.

@fhinkel
Copy link
Contributor

fhinkel commented Mar 24, 2020

Closing this issue due to inactivity. Please re-open if needed.

@fhinkel fhinkel closed this as completed Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants