We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I created my own GoogleApp with Client id OAUTH (Web Client and OAuth Client) with this scope/permision:
But, after login and view the "Success! You can close this tab and go back to the terminal." in my terminal show this erro:
{ Error: invalid_request at createError (/home/luisangonzalez/.npm/_npx/15390/lib/node_modules/browserslist-ga-qdq/node_modules/axios/lib/core/createError.js:16:15) at settle (/home/luisangonzalez/.npm/_npx/15390/lib/node_modules/browserslist-ga-qdq/node_modules/axios/lib/core/settle.js:18:12) at IncomingMessage.handleStreamEnd (/home/luisangonzalez/.npm/_npx/15390/lib/node_modules/browserslist-ga-qdq/node_modules/axios/lib/adapters/http.js:201:11) at emitNone (events.js:111:20) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12) at _combinedTickCallback (internal/process/next_tick.js:139:11) at process._tickCallback (internal/process/next_tick.js:181:9) config: { adapter: [Function: httpAdapter], transformRequest: { '0': [Function: transformRequest] }, transformResponse: { '0': [Function: transformResponse] }, timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, */*', 'Content-Type': 'application/x-www-form-urlencoded', 'User-Agent': 'google-api-nodejs-client/1.6.1', 'Content-Length': 282 }, method: 'post', url: 'https://www.googleapis.com/oauth2/v4/token', data: 'code=4%2FlQD0TYBTL8wWAJS6gYgh_w19ytTOWK8b_u1hzxMkwNDyKoLDDkLE9KxYJNFNLLUuXt07pUspLJ6Lr7T2Rm3DDoo&client_id=827156059949-ev07hth0oqc5bdsjrl822mbqtibobm52.apps.googleusercontent.com&client_secret=&redirect_uri=http%3A%2F%2F127.0.0.1%3A8000&grant_type=authorization_code&code_verifier=' }, request: ClientRequest { domain: null, _events: { socket: [Function], abort: [Function], aborted: [Function], error: [Function], timeout: [Function], prefinish: [Function: requestOnPrefinish] }, _eventsCount: 6, _maxListeners: undefined, output: [], outputEncodings: [], outputCallbacks: [], outputSize: 0, writable: true, _last: true, upgrading: false, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, _SNICallback: null, servername: 'www.googleapis.com', npnProtocol: false, alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object], _eventsCount: 9, connecting: false, _hadError: false, _handle: null, _parent: null, _host: 'www.googleapis.com', _readableState: [Object], readable: false, domain: null, _maxListeners: undefined, _writableState: [Object], writable: false, allowHalfOpen: false, _bytesDispatched: 518, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: null, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], write: [Function: writeAfterFIN], _idleNext: null, _idlePrev: null, _idleTimeout: -1, [Symbol(asyncId)]: 166, [Symbol(bytesRead)]: 480 }, connection: TLSSocket { _tlsOptions: [Object], _secureEstablished: true, _securePending: false, _newSessionPending: false, _controlReleased: true, _SNICallback: null, servername: 'www.googleapis.com', npnProtocol: false, alpnProtocol: false, authorized: true, authorizationError: null, encrypted: true, _events: [Object], _eventsCount: 9, connecting: false, _hadError: false, _handle: null, _parent: null, _host: 'www.googleapis.com', _readableState: [Object], readable: false, domain: null, _maxListeners: undefined, _writableState: [Object], writable: false, allowHalfOpen: false, _bytesDispatched: 518, _sockname: null, _pendingData: null, _pendingEncoding: '', server: undefined, _server: null, ssl: null, _requestCert: true, _rejectUnauthorized: true, parser: null, _httpMessage: [Circular], write: [Function: writeAfterFIN], _idleNext: null, _idlePrev: null, _idleTimeout: -1, [Symbol(asyncId)]: 166, [Symbol(bytesRead)]: 480 }, _header: 'POST /oauth2/v4/token HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/x-www-form-urlencoded\r\nUser-Agent: google-api-nodejs-client/1.6.1\r\nContent-Length: 282\r\nHost: www.googleapis.com\r\nConnection: close\r\n\r\n', _onPendingData: [Function: noopPendingOutput], agent: Agent { domain: null, _events: [Object], _eventsCount: 1, _maxListeners: undefined, defaultPort: 443, protocol: 'https:', options: [Object], requests: {}, sockets: [Object], freeSockets: {}, keepAliveMsecs: 1000, keepAlive: false, maxSockets: Infinity, maxFreeSockets: 256, maxCachedSessions: 100, _sessionCache: [Object] }, socketPath: undefined, timeout: undefined, method: 'POST', path: '/oauth2/v4/token', _ended: true, res: IncomingMessage { _readableState: [Object], readable: false, domain: null, _events: [Object], _eventsCount: 3, _maxListeners: undefined, socket: [Object], connection: [Object], httpVersionMajor: 1, httpVersionMinor: 1, httpVersion: '1.1', complete: true, headers: [Object], rawHeaders: [Array], trailers: {}, rawTrailers: [], upgrade: false, url: '', method: null, statusCode: 400, statusMessage: 'Bad Request', client: [Object], _consuming: true, _dumped: false, req: [Circular], responseUrl: 'https://www.googleapis.com/oauth2/v4/token', redirects: [], read: [Function] }, aborted: undefined, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, _redirectable: Writable { _writableState: [Object], writable: true, domain: null, _events: [Object], _eventsCount: 2, _maxListeners: undefined, _options: [Object], _redirectCount: 0, _redirects: [], _requestBodyLength: 282, _requestBodyBuffers: [], _onNativeResponse: [Function], _currentRequest: [Circular], _currentUrl: 'https://www.googleapis.com/oauth2/v4/token' }, [Symbol(outHeadersKey)]: { accept: [Array], 'content-type': [Array], 'user-agent': [Array], 'content-length': [Array], host: [Array] } }, response: { status: 400, statusText: 'Bad Request', headers: { 'content-type': 'application/json; charset=utf-8', vary: 'X-Origin, Referer, Origin,Accept-Encoding', date: 'Wed, 14 Nov 2018 09:06:27 GMT', server: 'ESF', 'cache-control': 'private', 'x-xss-protection': '1; mode=block', 'x-frame-options': 'SAMEORIGIN', 'x-content-type-options': 'nosniff', 'alt-svc': 'quic=":443"; ma=2592000; v="44,43,39,35"', 'accept-ranges': 'none', connection: 'close' }, config: { adapter: [Function: httpAdapter], transformRequest: [Object], transformResponse: [Object], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, validateStatus: [Function: validateStatus], headers: [Object], method: 'post', url: 'https://www.googleapis.com/oauth2/v4/token', data: 'code=4%2FlQD0TYBTL8wWAJS6gYgh_w19ytTOWK8b_u1hzxMkwNDyKoLDDkLE9KxYJNFNLLUuXt07pUspLJ6Lr7T2Rm3DDoo&client_id=827156059949-ev07hth0oqc5bdsjrl822mbqtibobm52.apps.googleusercontent.com&client_secret=&redirect_uri=http%3A%2F%2F127.0.0.1%3A8000&grant_type=authorization_code&code_verifier=' }, request: ClientRequest { domain: null, _events: [Object], _eventsCount: 6, _maxListeners: undefined, output: [], outputEncodings: [], outputCallbacks: [], outputSize: 0, writable: true, _last: true, upgrading: false, chunkedEncoding: false, shouldKeepAlive: false, useChunkedEncodingByDefault: true, sendDate: false, _removedConnection: false, _removedContLen: false, _removedTE: false, _contentLength: null, _hasBody: true, _trailer: '', finished: true, _headerSent: true, socket: [Object], connection: [Object], _header: 'POST /oauth2/v4/token HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nContent-Type: application/x-www-form-urlencoded\r\nUser-Agent: google-api-nodejs-client/1.6.1\r\nContent-Length: 282\r\nHost: www.googleapis.com\r\nConnection: close\r\n\r\n', _onPendingData: [Function: noopPendingOutput], agent: [Object], socketPath: undefined, timeout: undefined, method: 'POST', path: '/oauth2/v4/token', _ended: true, res: [Object], aborted: undefined, timeoutCb: null, upgradeOrConnect: false, parser: null, maxHeadersCount: null, _redirectable: [Object], [Symbol(outHeadersKey)]: [Object] }, data: { error: 'invalid_request', error_description: 'client_secret is missing.' } }, code: '400' }
And not generate .json
--
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I created my own GoogleApp with Client id OAUTH (Web Client and OAuth Client) with this scope/permision:
And this http://127.0.0.1:8000 origin Javascript and URI
But, after login and view the "Success! You can close this tab and go back to the terminal." in my terminal show this erro:
And not generate .json
--
The text was updated successfully, but these errors were encountered: