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

ECONNRESET after successful authentication #182

Open
@antonije-pavlovic

Description

@antonije-pavlovic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions