Skip to content

Instantly share code, notes, and snippets.

@pencilcheck
Created July 4, 2015 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pencilcheck/feda971b3da69727a52b to your computer and use it in GitHub Desktop.
Save pencilcheck/feda971b3da69727a52b to your computer and use it in GitHub Desktop.
After setting year and year_start of education and experience to date string this happens
mongo_1 | 2015-07-04T19:48:25.050+0000 I QUERY [conn30] assertion 17287 Can't canonicalize query: BadValue $and/$or/$nor must be a nonempty array ns:test.companies query:{ $or: [] }
mongo_1 | 2015-07-04T19:48:25.051+0000 I QUERY [conn30] ntoskip:0 ntoreturn:1000
backend_1 | _http_outgoing.js:335
backend_1 | throw new Error('Can\'t set headers after they are sent.');
backend_1 | ^
backend_1 | Error: Can't set headers after they are sent.
backend_1 | at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11)
backend_1 | at ServerResponse.header (/src/node_modules/express/lib/response.js:718:10)
backend_1 | at ServerResponse.send (/src/node_modules/express/lib/response.js:163:12)
backend_1 | at ServerResponse.json (/src/node_modules/express/lib/response.js:249:15)
backend_1 | at ServerResponse.send (/src/node_modules/express/lib/response.js:151:21)
backend_1 | at /src/controllers/users.js:95:27
backend_1 | at /src/node_modules/mongoose/lib/query.js:1174:16
backend_1 | at /src/node_modules/mongoose/node_modules/kareem/index.js:109:16
backend_1 | at process._tickCallback (node.js:355:11)
mongo_1 | 2015-07-04T19:48:25.071+0000 I NETWORK [conn5] end connection 172.17.0.61:55907 (52 connections now open)
mongo_1 | 2015-07-04T19:48:25.071+0000 I NETWORK [conn7] end connection 172.17.0.61:55909 (52 connections now open)
mongo_1 | 2015-07-04T19:48:25.072+0000 I NETWORK [conn10] end connection 172.17.0.61:55912 (50 connections now open)
mongo_1 | 2015-07-04T19:48:25.072+0000 I NETWORK [conn11] end connection 172.17.0.61:55913 (49 connections now open)
mongo_1 | 2015-07-04T19:48:25.073+0000 I NETWORK [conn12] end connection 172.17.0.61:55914 (48 connections now open)
mongo_1 | 2015-07-04T19:48:25.073+0000 I NETWORK [conn13] end connection 172.17.0.61:55915 (48 connections now open)
mongo_1 | 2015-07-04T19:48:25.071+0000 I NETWORK [conn8] end connection 172.17.0.61:55910 (52 connections now open)
mongo_1 | 2015-07-04T19:48:25.071+0000 I NETWORK [conn6] end connection 172.17.0.61:55908 (52 connections now open)
mongo_1 | 2015-07-04T19:48:25.072+0000 I NETWORK [conn9] end connection 172.17.0.61:55911 (49 connections now open)
mongo_1 | 2015-07-04T19:48:25.075+0000 I NETWORK [conn15] end connection 172.17.0.61:55917 (43 connections now open)
mongo_1 | 2015-07-04T19:48:25.076+0000 I NETWORK [conn14] end connection 172.17.0.61:55916 (42 connections now open)
mongo_1 | 2015-07-04T19:48:25.076+0000 I NETWORK [conn37] end connection 172.17.0.61:55939 (41 connections now open)
mongo_1 | 2015-07-04T19:48:25.076+0000 I NETWORK [conn32] end connection 172.17.0.61:55934 (41 connections now open)
mongo_1 | 2015-07-04T19:48:25.076+0000 I NETWORK [conn39] end connection 172.17.0.61:55941 (40 connections now open)
mongo_1 | 2015-07-04T19:48:25.077+0000 I NETWORK [conn34] end connection 172.17.0.61:55936 (39 connections now open)
mongo_1 | 2015-07-04T19:48:25.075+0000 I NETWORK [conn17] end connection 172.17.0.61:55919 (43 connections now open)
mongo_1 | 2015-07-04T19:48:25.077+0000 I NETWORK [conn40] end connection 172.17.0.61:55942 (38 connections now open)
mongo_1 | 2015-07-04T19:48:25.077+0000 I NETWORK [conn43] end connection 172.17.0.61:55945 (36 connections now open)
mongo_1 | 2015-07-04T19:48:25.077+0000 I NETWORK [conn45] end connection 172.17.0.61:55947 (34 connections now open)
mongo_1 | 2015-07-04T19:48:25.077+0000 I NETWORK [conn41] end connection 172.17.0.61:55943 (34 connections now open)
mongo_1 | 2015-07-04T19:48:25.078+0000 I NETWORK [conn54] end connection 172.17.0.61:55957 (32 connections now open)
mongo_1 | 2015-07-04T19:48:25.079+0000 I NETWORK [conn47] end connection 172.17.0.61:55949 (33 connections now open)
mongo_1 | 2015-07-04T19:48:25.079+0000 I NETWORK [conn48] end connection 172.17.0.61:55950 (32 connections now open)
mongo_1 | 2015-07-04T19:48:25.075+0000 I NETWORK [conn18] end connection 172.17.0.61:55920 (43 connections now open)
mongo_1 | 2015-07-04T19:48:25.079+0000 I NETWORK [conn26] end connection 172.17.0.61:55928 (32 connections now open)
mongo_1 | 2015-07-04T19:48:25.079+0000 I NETWORK [conn29] end connection 172.17.0.61:55931 (29 connections now open)
mongo_1 | 2015-07-04T19:48:25.079+0000 I NETWORK [conn30] end connection 172.17.0.61:55932 (29 connections now open)
mongo_1 | 2015-07-04T19:48:25.076+0000 I NETWORK [conn16] end connection 172.17.0.61:55918 (43 connections now open)
mongo_1 | 2015-07-04T19:48:25.081+0000 I NETWORK [conn50] end connection 172.17.0.61:55953 (25 connections now open)
mongo_1 | 2015-07-04T19:48:25.081+0000 I NETWORK [conn23] end connection 172.17.0.61:55925 (24 connections now open)
mongo_1 | 2015-07-04T19:48:25.080+0000 I NETWORK [conn49] end connection 172.17.0.61:55952 (25 connections now open)
mongo_1 | 2015-07-04T19:48:25.076+0000 I NETWORK [conn24] end connection 172.17.0.61:55926 (43 connections now open)
mongo_1 | 2015-07-04T19:48:25.081+0000 I NETWORK [conn21] end connection 172.17.0.61:55923 (22 connections now open)
mongo_1 | 2015-07-04T19:48:25.081+0000 I NETWORK [conn22] end connection 172.17.0.61:55924 (21 connections now open)
mongo_1 | 2015-07-04T19:48:25.081+0000 I NETWORK [conn20] end connection 172.17.0.61:55922 (25 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn19] end connection 172.17.0.61:55921 (34 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn51] end connection 172.17.0.61:55954 (18 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn36] end connection 172.17.0.61:55938 (18 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn35] end connection 172.17.0.61:55937 (15 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn46] end connection 172.17.0.61:55948 (15 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn38] end connection 172.17.0.61:55940 (14 connections now open)
mongo_1 | 2015-07-04T19:48:25.082+0000 I NETWORK [conn52] end connection 172.17.0.61:55955 (13 connections now open)
mongo_1 | 2015-07-04T19:48:25.083+0000 I NETWORK [conn53] end connection 172.17.0.61:55956 (11 connections now open)
mongo_1 | 2015-07-04T19:48:25.083+0000 I NETWORK [conn44] end connection 172.17.0.61:55946 (10 connections now open)
mongo_1 | 2015-07-04T19:48:25.083+0000 I NETWORK [conn42] end connection 172.17.0.61:55944 (9 connections now open)
mongo_1 | 2015-07-04T19:48:25.083+0000 I NETWORK [conn27] end connection 172.17.0.61:55929 (11 connections now open)
backend_1 | 4 Jul 19:48:25 - [nodemon] app crashed - waiting for file changes before starting...
nginx_1 | 2015/07/04 19:48:25 [error] 6#6: *2 upstream prematurely closed connection while reading upstream, client: 192.168.59.3, server: , request: "PUT /api/v1/users/5598386d3d97a51900a49f36 HTTP/1.1", upstream: "http://172.17.0.61:8080/api/v1/users/5598386d3d97a51900a49f36", host: "docker", referrer: "http://docker/"
mongo_1 | 2015-07-04T19:48:25.085+0000 I NETWORK [conn28] end connection 172.17.0.61:55930 (6 connections now open)
mongo_1 | 2015-07-04T19:48:25.086+0000 I NETWORK [conn33] end connection 172.17.0.61:55935 (5 connections now open)
mongo_1 | 2015-07-04T19:48:25.087+0000 I NETWORK [conn31] end connection 172.17.0.61:55933 (4 connections now open)
nginx_1 | 192.168.59.3 - - [04/Jul/2015:19:48:25 +0000] "PUT /api/v1/users/5598386d3d97a51900a49f36 HTTP/1.1" 500 60 "http://docker/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36"
mongo_1 | 2015-07-04T19:48:25.090+0000 I NETWORK [conn25] end connection 172.17.0.61:55927 (15 connections now open)
@pencilcheck
Copy link
Author

The source payload:

{"_id":"5598386d3d97a51900a49f36","__v":0,"privacy_hide_current_company":false,"privacy_hide_last_name":false,"privacy_blur_avatar":false,"job_scores":[],"local":{"password":"$2a$08$vzc.8diSPFSuQzC/T3lC6edD4832Atk96gDEuRYkmcqPkLkPMok9q","email":"asdfasdffd@adsfadgfdg.com"},"avatar_url":"assets/images/avatars/default.png","desired_work_roles":[],"skills":[],"blurbs":[],"educations":[{"major":null,"school":"University of California–Berkeley (CA)","year":"2007-12-01T08:00:00.000Z"}],"experiences":[],"connection_requirement":{"filters":[],"questions":[]},"desired_work_location":null,"name":"Toddler","description":""}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment