Skip to content

Instantly share code, notes, and snippets.

backend_1 | ReferenceError: params is not defined
backend_1 | at /src/controllers/attendees.js:843:17
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at next (/install/node_modules/express/lib/router/route.js:131:13)
backend_1 | at Route.dispatch (/install/node_modules/express/lib/router/route.js:112:3)
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at /install/node_modules/express/lib/router/index.js:277:22
backend_1 | at param (/install/node_modules/express/lib/router/index.js:349:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
backend_1 | /src/controllers/events.js:588
backend_1 | for (j=0; j<user.skills.length; j++){
backend_1 | ^
backend_1 | TypeError: Cannot read property 'skills' of null
backend_1 | at Query.<anonymous> (/src/controllers/events.js:588:27)
backend_1 | at /install/node_modules/mongoose/node_modules/kareem/index.js:177:19
backend_1 | at /install/node_modules/mongoose/node_modules/kareem/index.js:109:16
backend_1 | at process._tickCallback (node.js:355:11)
backend_1 | TypeError: undefined is not a function
backend_1 | at /src/controllers/events.js:1126:52
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at next (/install/node_modules/express/lib/router/route.js:131:13)
backend_1 | at Route.dispatch (/install/node_modules/express/lib/router/route.js:112:3)
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at /install/node_modules/express/lib/router/index.js:277:22
backend_1 | at Function.process_params (/install/node_modules/express/lib/router/index.js:330:12)
backend_1 | at next (/install/node_modules/express/lib/router/index.js:271:10)
backend_1 | at Function.handle (/install/node_modules/express/lib/router/index.js:176:3)
backend_1 | /src/controllers/events.js:482
backend_1 | if (connections.length !== 0){
backend_1 | ^
backend_1 | TypeError: Cannot read property 'length' of undefined
backend_1 | at /src/controllers/events.js:482:22
backend_1 | at /install/node_modules/async/lib/async.js:713:13
backend_1 | at async.forEachOf.async.eachOf (/install/node_modules/async/lib/async.js:233:13)
backend_1 | at _parallel (/install/node_modules/async/lib/async.js:712:9)
backend_1 | at Object.async.parallel (/install/node_modules/async/lib/async.js:726:9)
backend_1 | at eventMatch (/src/controllers/events.js:479:9)
backend_1 | TypeError: Cannot read property '0' of undefined
backend_1 | at /src/controllers/events.js:671:31
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at next (/install/node_modules/express/lib/router/route.js:131:13)
backend_1 | at Route.dispatch (/install/node_modules/express/lib/router/route.js:112:3)
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at /install/node_modules/express/lib/router/index.js:277:22
backend_1 | at param (/install/node_modules/express/lib/router/index.js:349:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
backend_1 | at Function.process_params (/install/node_modules/express/lib/router/index.js:410:3)
FROM pencilcheck/base:v1
MAINTAINER Penn Su
RUN npm install -g gulp nodemon coffee-script
#To cache node modules across
RUN mkdir -p /install
ADD package.json /install/package.json
RUN npm config set registry https://registry.npmjs.org/
RUN cd /install && npm install --ignore-scripts --unsafe-perm
ENV NODE_PATH "/install/node_modules"
@pencilcheck
pencilcheck / gist:c5167c63320a3e6a7840
Created November 28, 2015 11:02
GET http://docker/api/v1/users/564862e5b2bdc81c00a043d3/recommended_events?category=calcpa&current=price&limit=200&sort=price&start_offset=0 500 (Internal Server Error)
backend_1 | ReferenceError: date is not defined
backend_1 | at /src/controllers/events.js:576:258
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at next (/install/node_modules/express/lib/router/route.js:131:13)
backend_1 | at Route.dispatch (/install/node_modules/express/lib/router/route.js:112:3)
backend_1 | at Layer.handle [as handle_request] (/install/node_modules/express/lib/router/layer.js:95:5)
backend_1 | at /install/node_modules/express/lib/router/index.js:277:22
backend_1 | at param (/install/node_modules/express/lib/router/index.js:349:14)
backend_1 | at param (/install/node_modules/express/lib/router/index.js:365:14)
backend_1 | at Function.process_params (/install/node_modules/express/lib/router/index.js:410:3)
backend_1 | /src/controllers/events.js:299
backend_1 | if (user_connections.indexOf(attendee._id) === -1 ) {
backend_1 | ^
backend_1 | TypeError: Cannot read property '_id' of null
backend_1 | at Query.<anonymous> (/src/controllers/events.js:299:52)
backend_1 | at /install/node_modules/mongoose/node_modules/kareem/index.js:177:19
backend_1 | at /install/node_modules/mongoose/node_modules/kareem/index.js:109:16
backend_1 | at process._tickCallback (node.js:355:11)
backend_1 | /src/controllers/events.js:299
backend_1 | if (user_connections.indexOf(attendee._id) === -1 ) {
backend_1 | ^
backend_1 | TypeError: Cannot read property '_id' of null
backend_1 | at Query.<anonymous> (/src/controllers/events.js:299:52)
backend_1 | at /install/node_modules/mongoose/node_modules/kareem/index.js:177:19
backend_1 | at /install/node_modules/mongoose/node_modules/kareem/index.js:109:16
backend_1 | at process._tickCallback (node.js:355:11)
backend_1 | Error: Cannot find module 'rx'
backend_1 | at Function.Module._resolveFilename (module.js:336:15)
backend_1 | at Function.Module._load (module.js:278:25)
backend_1 | at Module.require (module.js:365:17)
backend_1 | at require (module.js:384:17)
backend_1 | at Object.<anonymous> (/src/controllers/events.js:5:10)
backend_1 | at Module._compile (module.js:460:26)
backend_1 | at Object.Module._extensions..js (module.js:478:10)
backend_1 | at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
backend_1 | at Function.Module._load (module.js:310:12)