Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

ExpressJS incompatibility, error 500: "TypeError: Cannot read property 'resumption' of undefined" #55

Open
gmdfalk opened this issue Apr 30, 2018 · 0 comments

Comments

@gmdfalk
Copy link

gmdfalk commented Apr 30, 2018

Hey, i am running into issues #14 and #16 again.

It seems botauth in the current version is still incompatible with the express web server.

I am trying to connect to AADv2 and get a 500 server error when opening the AADv2 callback url https://somebot.eu.ngrok.io/botauth/aadv2/callback?code=OAQABAAIAAADX8GCi6Js6SK82TsD2Pb7r35MlsfImkvXuDJc9P6ppQOjkQYpAPSZhTklOid3MNSrt6D559VicvOWluX0ebmgkzYP3J3ZE3taFUvmWusaBP2WBHR7xhhzv_HiG3SeqyjNQK0bEp4D8OB5dO1E1nNYRr8prZEfcp7g8lAZn9vHoFoQv3NEJHEA9Vgn8Lu1FR7beCN3QoygJPhNA8R_WFqYUjILr9bNSTyPPrpcfh2RJT0xKAjiv-QgRZRoCNsgMwbmbUCEkDjdudC5qo0yxS44-BHgiRVkHNEi7J7jJXHn7Or2O2tg1tjZ5Kx2kENP134LQOXaYSz_W6-jniG2oHJNS4CjSjlwuFgjCPGt5P3E8H2CiGNv93TrTTR9DGgG2JHOekFMSn2j0STHnBMI5zRGYGrG0rzSbrQB8EmlaDhX_BcGlqh7WATSwkZdU0HKfASeWZt4nOoGmTdv5Pk54SPIpKOcMaPNUDI4jvxjqvBCphiK9Ao9lunlslkP6HqzAlS2sfsZO-gnuXFNLYKQ_n4bUJ-v1oolVCpgLFiy_PjCdJSAqHqBoJI9nE_GqUJJqxo1c1Gqtld-IVHZ7iOwLi39Ue8KbqTB7WGUCl6c3LHVqYyg-RwVeu2vV69Tz5PuJd1jI9NDG4ZkVYJJfjidycCDqmfvEhaLgaDKh2nf3gt7ISo_J9tmh_uCKWn4uUQRAGyhVLzJYgb8viQA1-86G9ocK6q9VOVXD2XJrgHClDxFOaiAA&state=sIVYMo3WaRNJ06TxPCqIYnFKcltosthu&session_state=b94b095c-6ab2-44b1-a4de-35965bcca1e5.

Express Stacktrace:

at /projects/somebot/node_modules/botauth/lib/index.js:156:57
at Layer.handle [as handle_request] (/projects/somebot/node_modules/express/lib/router/layer.js:95:5)
at next (/projects/somebot/node_modules/express/lib/router/route.js:131:13)
at /projects/somebot/node_modules/botauth/lib/resumption.js:35:13
at Layer.handle [as handle_request] (/projects/somebot/node_modules/express/lib/router/layer.js:95:5)
at next (/projects/somebot/node_modules/express/lib/router/route.js:131:13)
at complete (/projects/somebot/node_modules/passport/lib/middleware/authenticate.js:250:13)
at /projects/somebot/node_modules/passport/lib/middleware/authenticate.js:257:15
at pass (/projects/somebot/node_modules/passport/lib/authenticator.js:421:14)
at Authenticator.transformAuthInfo (/projects/somebot/node_modules/passport/lib/authenticator.js:443:5)
TypeError: Cannot read property 'resumption' of undefined

The in #14 suggested botauth fork does not work, either.
Is there any workaround available besides switching to restify?

Regards

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

1 participant