You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I want to get access token with Github, I get the following error. After the callback, it gives an error like the one below.
InternalOAuthError: Failed to obtain access token
at Strategy.OAuth2Strategy._createOAuthError (/APP/code-push-server-standalone/api/node_modules/passport-oauth2/lib/strategy.js:423:17)
at /APP/code-push-server-standalone/api/node_modules/passport-oauth2/lib/strategy.js:177:45
at /APP/code-push-server-standalone/api/node_modules/oauth/lib/oauth2.js:191:18
at ClientRequest. (/APP/code-push-server-standalone/api/node_modules/oauth/lib/oauth2.js:162:5)
at ClientRequest.emit (node:events:513:28)
at ClientRequest.emit (node:domain:489:12)
at TLSSocket.socketErrorListener (node:_http_client:494:9)
at TLSSocket.emit (node:events:513:28)
at TLSSocket.emit (node:domain:489:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
The text was updated successfully, but these errors were encountered:
on adding some logs, I found that the error at oauth/lib/oauth2.js:191 was an SSL error: Error: self-signed certificate in certificate chain when I was using the application under a VPN.
Had to add NODE_TLS_REJECT_UNAUTHORIZED=0 in the .env to get it to work, might be relevant to add in the README.md or the example env file itself
When I want to get access token with Github, I get the following error. After the callback, it gives an error like the one below.
InternalOAuthError: Failed to obtain access token
at Strategy.OAuth2Strategy._createOAuthError (/APP/code-push-server-standalone/api/node_modules/passport-oauth2/lib/strategy.js:423:17)
at /APP/code-push-server-standalone/api/node_modules/passport-oauth2/lib/strategy.js:177:45
at /APP/code-push-server-standalone/api/node_modules/oauth/lib/oauth2.js:191:18
at ClientRequest. (/APP/code-push-server-standalone/api/node_modules/oauth/lib/oauth2.js:162:5)
at ClientRequest.emit (node:events:513:28)
at ClientRequest.emit (node:domain:489:12)
at TLSSocket.socketErrorListener (node:_http_client:494:9)
at TLSSocket.emit (node:events:513:28)
at TLSSocket.emit (node:domain:489:12)
at emitErrorNT (node:internal/streams/destroy:157:8)
The text was updated successfully, but these errors were encountered: