TZM / tzm-blade

ZMGC Application empowers members with on-line tools, by providing a free infrastructure to easily exchange, analyse and disseminate information in a scalable, non-blocking manner using only Open Source software build by the community for the community. It is about building lasting and deep solidarity versus cheap and fast Facebook or Twitter campaigns
www.zmgc.net
GNU General Public License v3.0
4 stars 8 forks source link

Internal Server Error #37

Open nkhine opened 10 years ago

nkhine commented 10 years ago

When a user tries to login using any of the Auth modules such as Yahoo, Google etc you get Internal Server Error

with the following traceback from the logs:

☺  heroku logs
2013-09-08T12:35:03.344354+00:00 app[web.1]: [Function]
2013-09-08T12:35:03.901465+00:00 heroku[router]: at=info method=GET path=/social/yahoocallback?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.return_to=http%3A%2F%2Fwww.zmgc.net%2F%2Fsocial%2Fyahoocallback&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2F_MPC1pg5houHbmqWq_D3SIDtLJjbWAHHKA--%23c722f&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2F_MPC1pg5houHbmqWq_D3SIDtLJjbWAHHKA--&openid.assoc_handle=uLdV2Ey1a4RIIwfATX2YYPO6.MBzoJV5zxknLgA1DKtLI1M8x2FuCUU4fbf7cKYN0dtF.ekpgukblF1u7TixZnrKT8YcYjqfXKRa.9_JlBjrHccqdM9DGwDYGgKSYkAODuzf&openid.realm=http%3A%2F%2Fwww.zmgc.net%2F&openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ax.mode=fetch_response&openid.ax.value.fullname=Anarchy%20Me&openid.ax.value.email=norman_khine%40yahoo.co.uk&openid.response_nonce=2013-09-08T12%3A35%3A02ZayAmMwnfWzXh1EYxRe0tDcIK.fLDvjs9CA--&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cax.value.fullname%2Cax.type.fullname%2Cax.value.email%2Cax.type.email%2Cns.ax%2Cax.mode%2Cpape.auth_level.nist&openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&openid.ax.type.fullname=http%3A%2F%2Faxschema.org%2FnamePerson&openid.ax.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.pape.auth_level.nist=0&openid.sig=lEfgBylSo0aNoPPKcvB0LPPw6g6duZXrfMksVffoOjM%3D host=www.zmgc.net fwd="46.64.51.97" dyno=web.1 connect=2ms service=716ms status=500 bytes=21
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1188:14
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at _checkSignatureUsingAssociation (/app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1231:10)
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/lib/passport-openid/strategy.js:184:36
2013-09-08T12:35:03.893439+00:00 app[web.1]: Failed to verify assertion (message: Invalid association handle)
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1063:12
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1239:14
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:533:11
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at _checkSignature (/app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1221:5)
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at _verifyAssertionAgainstProvider (/app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1184:3)
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at Object.openid.loadAssociation (/app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:111:5)
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at IncomingMessage.<anonymous> (/app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:258:32)
2013-09-08T12:35:03.893439+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:1155:16
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at /app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:678:7
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at done (/app/node_modules/passport-yahoo/node_modules/passport-openid/node_modules/openid/openid.js:254:9)
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at process._tickCallback (node.js:415:13)
2013-09-08T12:35:03.902313+00:00 app[web.1]: GET /social/yahoocallback?openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&openid.mode=id_res&openid.return_to=http%3A%2F%2Fwww.zmgc.net%2F%2Fsocial%2Fyahoocallback&openid.claimed_id=https%3A%2F%2Fme.yahoo.com%2Fa%2F_MPC1pg5houHbmqWq_D3SIDtLJjbWAHHKA--%23c722f&openid.identity=https%3A%2F%2Fme.yahoo.com%2Fa%2F_MPC1pg5houHbmqWq_D3SIDtLJjbWAHHKA--&openid.assoc_handle=uLdV2Ey1a4RIIwfATX2YYPO6.MBzoJV5zxknLgA1DKtLI1M8x2FuCUU4fbf7cKYN0dtF.ekpgukblF1u7TixZnrKT8YcYjqfXKRa.9_JlBjrHccqdM9DGwDYGgKSYkAODuzf&openid.realm=http%3A%2F%2Fwww.zmgc.net%2F&openid.ns.ax=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ax.mode=fetch_response&openid.ax.value.fullname=Anarchy%20Me&openid.ax.value.email=norman_khine%40yahoo.co.uk&openid.response_nonce=2013-09-08T12%3A35%3A02ZayAmMwnfWzXh1EYxRe0tDcIK.fLDvjs9CA--&openid.signed=assoc_handle%2Cclaimed_id%2Cidentity%2Cmode%2Cns%2Cop_endpoint%2Cresponse_nonce%2Creturn_to%2Csigned%2Cax.value.fullname%2Cax.type.fullname%2Cax.value.email%2Cax.type.email%2Cns.ax%2Cax.mode%2Cpape.auth_l
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at IncomingMessage.EventEmitter.emit (events.js:117:20)
2013-09-08T12:35:03.893638+00:00 app[web.1]:     at _stream_readable.js:910:16
2013-09-08T12:35:03.902313+00:00 app[web.1]: evel.nist&openid.op_endpoint=https%3A%2F%2Fopen.login.yahooapis.com%2Fopenid%2Fop%2Fauth&openid.ax.type.fullname=http%3A%2F%2Faxschema.org%2FnamePerson&openid.ax.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.pape.auth_level.nist=0&openid.sig=lEfgBylSo0aNoPPKcvB0LPPw6g6duZXrfMksVffoOjM%3D 500 704ms - 21b

if you login using Mozilla's Personna and then use the same email address then this works fine.