Skip to content

tobyhinloopen/openid-client-mailgun-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenID Connect + Mailgun = Error?

$ node main.js
AggregateError:
    RequestError: connect ECONNREFUSED 127.0.0.1:443
        at ClientRequest.<anonymous> (/Users/hinloopen/Projects/Github/openid-client-mailgun-js/node_modules/got/dist/source/core/index.js:953:111)
        at ClientRequest.origin.emit (/Users/hinloopen/Projects/Github/openid-client-mailgun-js/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
    RequestError: connect ECONNREFUSED 127.0.0.1:443
        at ClientRequest.<anonymous> (/Users/hinloopen/Projects/Github/openid-client-mailgun-js/node_modules/got/dist/source/core/index.js:953:111)
        at ClientRequest.origin.emit (/Users/hinloopen/Projects/Github/openid-client-mailgun-js/node_modules/@szmarczak/http-timer/dist/source/index.js:39:20)
    at maybeSettle (/Users/hinloopen/Projects/Github/openid-client-mailgun-js/node_modules/p-some/index.js:31:11)
    at /Users/hinloopen/Projects/Github/openid-client-mailgun-js/node_modules/p-some/index.js:69:23
    at processTicksAndRejections (internal/process/task_queues.js:93:5) {
  name: 'AggregateError'
}

Tested using Node 12.13.1 & 14.13.1

OK

// require("mailgun-js");
const { Issuer } = require("openid-client");
Issuer.discover("https://accounts.google.com").then(console.log, console.error)

OK

require("mailgun-js");
const { Issuer } = require("openid-client");
// Issuer.discover("https://accounts.google.com").then(console.log, console.error)

ERR

require("mailgun-js");
const { Issuer } = require("openid-client");
Issuer.discover("https://accounts.google.com").then(console.log, console.error)

Setup

npm init -y
npm install mailgun-js openid-client
node main.js

Known issue

MONEI/Shopify-api-node#406 (comment)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published