mozilla / id.webmaker.org

OAuth 2.0 identity provider for Webmaker
https://id.webmaker.org
Mozilla Public License 2.0
18 stars 51 forks source link

Crash: isUniqueError() - indexOf is not a function #417

Open cadecairos opened 8 years ago

cadecairos commented 8 years ago

Just got paged on this one. looks like it happens when a duplicate user is made.

2016-04-09T02:37:50.650728+00:00 app[web.2]: Debug: internal, implementation, error 
2016-04-09T02:37:50.650738+00:00 app[web.2]:     TypeError: err.indexOf is not a function
2016-04-09T02:37:50.650739+00:00 app[web.2]:     at isUniqueError (/app/web/server.js:120:11)
2016-04-09T02:37:50.650740+00:00 app[web.2]:     at /app/web/server.js:520:18
2016-04-09T02:37:50.650740+00:00 app[web.2]:     at /app/lib/account.js:141:9
2016-04-09T02:37:50.650741+00:00 app[web.2]:     at IncomingMessage.<anonymous> (/app/lib/account.js:42:5)
2016-04-09T02:37:50.650742+00:00 app[web.2]:     at emitNone (events.js:72:20)
2016-04-09T02:37:50.650742+00:00 app[web.2]:     at IncomingMessage.emit (events.js:166:7)
2016-04-09T02:37:50.650743+00:00 app[web.2]:     at IncomingMessage.wrapped (/app/node_modules/newrelic/lib/transaction/tracer/index.js:157:28)
2016-04-09T02:37:50.650744+00:00 app[web.2]:     at IncomingMessage.wrappedEmit [as emit] (/app/node_modules/newrelic/lib/transaction/tracer/index.js:197:46)
2016-04-09T02:37:50.650745+00:00 app[web.2]:     at endReadableNT (_stream_readable.js:905:12)
2016-04-09T02:37:50.650746+00:00 app[web.2]:     at wrapped (/app/node_modules/newrelic/lib/transaction/tracer/index.js:157:28)