Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

ECONNRESET after successful authentication #182

Open
antonije-pavlovic opened this issue Nov 2, 2021 · 2 comments
Open

ECONNRESET after successful authentication #182

antonije-pavlovic opened this issue Nov 2, 2021 · 2 comments

Comments

@antonije-pavlovic
Copy link

Hey,

I am getting the following error when I am trying to do authentication with Microsoft.

Expected behavior:
Create login URL, redirect the user to consent screen, accept callback from Microsoft, process callback and login user in the
app.

Current behavior:
Create login URL, redirect the user to consent screen, accept callback from Microsoft, process callback and login user in the
app and after 2 minutes following error occurs:

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:20)
at internal/streams/destroy.js:44:17
at TLSSocket.Socket._destroy (net.js:680:5)
at TLSSocket.destroy (internal/streams/destroy.js:38:8)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:209:12)

Endpoints used for client initialization are:
Authorize: https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Token: https://login.microsoftonline.com/common/oauth2/v2.0/token

We found out that problem is in the popsicle library, we changed request implementation in your library (src/request/index.js)
and instead of using popsicle we used node-fetch library(https://www.npmjs.com/package/node-fetch) and everything works as expected. This may be the possible solution for this problem.

@uip-robot-zz
Copy link

Git2Gus App is installed but the .git2gus/config.json doesn't exist.

@blakeembrey
Copy link
Contributor

I was debugging this due to a link issue on popsicle and I believe this was fixed in April. Can you try npm rm client-oauth2 && npm install client-oauth2 and see if that solved the problem? The root cause is that you're using an outdated dependency from popsicle, maybe because you installed and added it to your lock file during the timeframe with the broken release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants