Skip to content

Instantly share code, notes, and snippets.

Penn Su pencilcheck

Block or report user

Report or block pencilcheck

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:1f7bb6caa2c90877067b
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)
View gist:01e549aaede529d4f42f
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)
View gist:46363af4215b73afa2da
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)
View gist:93bfd527e53a8efcf00c
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)
View gist:9ed3223acb079ef6ac79
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 Nov 28, 2015
GET http://docker/api/v1/users/564862e5b2bdc81c00a043d3/recommended_events?category=calcpa&current=price&limit=200&sort=price&start_offset=0 500 (Internal Server Error)
View gist:c5167c63320a3e6a7840
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)
View gist:197fcf29bd52750c619d
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)
View gist:cfccfe42df84787aac83
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)
View gist:c1f7d091556b0af30f94
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)
View gist:8e38026e7f2a06c922c0
OverwriteModelError: Cannot overwrite `Action` model once compiled.
at Mongoose.model (/install/node_modules/mongoose/lib/index.js:344:13)
at Object.<anonymous> (/src/models/page_view.coffee:12:21)
at Object.<anonymous> (/src/models/page_view.coffee:1:1)
at Module._compile (module.js:460:26)
at Object.loadFile (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:16:19)
at Module.load (/usr/local/lib/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
You can’t perform that action at this time.