-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
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!