Skip to content

Instantly share code, notes, and snippets.

@swashcap
Created May 12, 2017 17:19
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 swashcap/e8cb5fa870c774914e10c0e3413dd71f to your computer and use it in GitHub Desktop.
Save swashcap/e8cb5fa870c774914e10c0e3413dd71f to your computer and use it in GitHub Desktop.
~/Sites/quarterback/packages/steelpenny$ npm t
> steelpenny@5.3.2 test /Users/creed/Sites/quarterback/packages/steelpenny
> nyc mocha 'test/{integration,unit}/*.js'
Running with COINS_ENV: development
Using default dbmap.json
(node:2687) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Cookies
170512/171921.946, [log,hapi-redis,info] data: redisClient connection created
170512/171922.299, [log,startup] data: server running at: http://Corys-MacBook-Pro.local:8800
170512/171922.320, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (1212ms)
170512/171923.560, (1494609563545:Corys-MacBook-Pro.local:2687:j2m3xyc7:10001) [request,error] data: jwt malformed
170512/171923.545, [response,api,auth,2.0backwardscompat] http://Corys-MacBook-Pro.local:8800: get /auth/cookies/InvalidCookieString {} 400 (19ms)
✓ Should respond with 400 for invalid cookies
170512/171923.575, (1494609563568:Corys-MacBook-Pro.local:2687:j2m3xyc7:10002) [request,error] data: jwt expired
170512/171923.568, [response,api,auth,2.0backwardscompat] http://Corys-MacBook-Pro.local:8800: get /auth/cookies/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsImlkIjoiNDY4NmQxZTYtOGZkYS00NjhiLTg0MDUtMDQzNmU2NTljMWNhIiwiaWF0IjoxNDM3OTQ3MTIyLCJleHAiOjE0Mzc5NDg5MjJ9.O8HCYEe0S5lQ5dZPNoEcrrr3yFpyXUN3Mm7BJbxeaYI {} 401 (9ms)
✓ Should respond with 401 for expired cookies
170512/171923.579, [response,api,auth,2.0backwardscompat] http://Corys-MacBook-Pro.local:8800: get /auth/cookies/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiYWIwMzQ1ZDUtNGU3NC00M2E4LWIxMjItZGZkYWY4NjBhN2I3Iiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2MywiZXhwIjoxNDk0NjEzMTYzfQ.h9tli84EkINtu9PaaYIGlPpxbZaOvx_Vds1MMUAfpro {} 200 (5ms)
✓ Should respond with 200 and new cookie val for valid cookies
170512/171923.601, [response,api,auth] http://Corys-MacBook-Pro.local:8800: delete /auth/keys/ab0345d5-4e74-43a8-b122-dfdaf860a7b7 {} 200 (15ms)
170512/171923.626, (1494609563622:Corys-MacBook-Pro.local:2687:j2m3xyc7:10005) [request,error] data: Credentails for JWT not found. Logged out?
170512/171923.622, [response,api,auth,2.0backwardscompat] http://Corys-MacBook-Pro.local:8800: get /auth/cookies/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiYWIwMzQ1ZDUtNGU3NC00M2E4LWIxMjItZGZkYWY4NjBhN2I3Iiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2MywiZXhwIjoxNDk0NjEzMTYzfQ.h9tli84EkINtu9PaaYIGlPpxbZaOvx_Vds1MMUAfpro {} 401 (6ms)
✓ Should respond with 401 after logout (47ms)
Test cookie roles
✓ Should contain the studyRoles for user mochatest
Dataexchange tests
Warning: Need to implement hist_table saving
170512/171923.643, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (928ms)
Request controller
GET loadFilterableModalities
170512/171924.579, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"loadFilterableModalities","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[],\"_children\":[],\"_type\":\"and\"},\"_label\":\"Untitled Request\",\"_modalities\":null,\"_readOnly\":false}"} 200 (145ms)
✓ Gets filterable modalities (153ms)
GET getStatistics
Warning: Need to implement hist_table saving
170512/171924.732, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"getStatistics","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[],\"_children\":[],\"_type\":\"and\"},\"_label\":\"Untitled Request\",\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":0,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":0,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":0,\"dx_filter_order\":4}},\"_readOnly\":false}"} 200 (135ms)
✓ Gets statistics for empty request (141ms)
170512/171924.874, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"getStatistics","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[{\"_id\":\"19990\",\"_parentId\":8383,\"_attributes\":[{\"_attributeId\":2,\"_parentId\":\"19990\",\"_optionId\":\"CALTECH TRIO 3.0T\",\"_optionLabel\":\"CALTECH TRIO 3.0T\",\"_modalityId\":1,\"_attributeLabel\":\"Device\",\"_options\":[]}],\"_statistics\":\"76\",\"_type\":\"MR\",\"_modalityId\":1}],\"_children\":[],\"_type\":\"and\"},\"_label\":\"Untitled Request\",\"_modalities\":null,\"_readOnly\":false,\"_id\":667}"} 200 (473ms)
✓ Gets statistics for NON empty request (478ms)
GET loadFromId
170512/171925.352, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"loadFromId","json":"{\"_topGroup\":{\"_parentId\":2765,\"_filters\":[],\"_children\":[],\"_type\":\"and\"},\"_id\":2765,\"_label\":\"Untitled Request\",\"_modalities\":null,\"_readOnly\":false}"} 200 (231ms)
✓ Loads saved request query by id (236ms)
170512/171925.802, (1494609565588:Corys-MacBook-Pro.local:2687:j2m3xyc7:10011) [request,error] data: invalid request id
170512/171925.588, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"loadFromId","json":"{\"_topGroup\":{\"_parentId\":99999,\"_filters\":[],\"_children\":[],\"_type\":\"and\"},\"_id\":99999,\"_label\":\"Untitled Request\",\"_modalities\":null,\"_readOnly\":false}"} 400 (215ms)
✓ Rejects with invalid ID (221ms)
Make a write request
with multiple parts
170512/171925.816, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"write","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[{\"_parentId\":null,\"_attributes\":[{\"_attributeId\":22,\"_parentId\":null,\"_optionId\":5320,\"_optionLabel\":\"ABIDE\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[]}],\"_type\":\"Studies\",\"_modalityId\":143}],\"_children\":[],\"_type\":\"and\"},\"_label\":\"Untitled Request\",\"_readOnly\":false,\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":0,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":0,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":0,\"dx_filter_order\":4}}}"} 200 (581ms)
✓ should start a new request and "write" the ABIDE study (592ms)
170512/171926.405, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"group","action":"write","json":"{\"_filters\":[{\"_parentId\":null,\"_attributes\":[{\"_attributeId\":22,\"_parentId\":null,\"_optionId\":5720,\"_optionLabel\":\"MCICShare\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[]}],\"_type\":\"Studies\",\"_modalityId\":143}],\"_children\":[],\"_type\":\"and\",\"_parentId\":9827}"} 200 (374ms)
✓ should add an AND group and another filter to the above request (380ms)
170512/171926.784, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"group","action":"switchType","json":"{\"_filters\":[{\"_attributes\":[{\"_attributeId\":22,\"_optionId\":5320,\"_optionLabel\":\"ABIDE\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[],\"_parentidid\":23640}],\"_statistics\":1,\"_type\":\"Studies\",\"_modalityId\":143,\"_id\":23640,\"_parentId\":9827}],\"_children\":[{\"_filters\":[{\"_attributes\":[{\"_attributeId\":22,\"_optionId\":5720,\"_optionLabel\":\"MCICShare\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[],\"_parentId\":23641}],\"_statistics\":1,\"_type\":\"Studies\",\"_modalityId\":143,\"_id\":23641,\"_parentId\":9828}],\"_children\":[],\"_type\":\"or\",\"_parentId\":9827,\"_id\":9828}],\"_type\":\"or\",\"_parentId\":9827,\"_id\":9827}"} 200 (182ms)
✓ should switch the main group to an "OR" (186ms)
170512/171926.972, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"filter","action":"write","json":"{\"_attributes\":[{\"_attributeId\":22,\"_parentId\":null,\"_optionId\":1139,\"_optionLabel\":\"COBRE\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[]}],\"_type\":\"Studies\",\"_modalityId\":143,\"_parentId\":9827}"} 200 (191ms)
✓ should add another filter to the main group in the above request (197ms)
170512/171927.170, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"filter","action":"write","json":"{\"_attributes\":[{\"_attributeId\":41,\"_parentId\":null,\"_optionId\":20,\"_optionLabel\":20,\"_modalityId\":1,\"_attributeLabel\":\"Max. age at scan\",\"_attributeDescription\":\"Max. age at scan\",\"_options\":[]}],\"_type\":\"MR\",\"_modalityId\":1,\"_parentId\":9828}"} 200 (183ms)
✓ should add another filter to the child group in the above request (191ms)
Clones a request
170512/171927.360, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"write","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[],\"_children\":[{\"_parentId\":null,\"_filters\":[{\"_parentId\":null,\"_attributes\":[{\"_attributeId\":22,\"_parentId\":null,\"_optionId\":5320,\"_optionLabel\":\"ABIDE\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_options\":[]}],\"_statistics\":1,\"_type\":\"Studies\",\"_modalityId\":143},{\"_parentId\":null,\"_attributes\":[{\"_attributeId\":41,\"_parentId\":null,\"_optionId\":6,\"_optionLabel\":6,\"_modalityId\":1,\"_attributeLabel\":\"Max. age at scan\",\"_options\":[]}],\"_statistics\":75,\"_type\":\"MR\",\"_modalityId\":1}],\"_children\":[],\"_type\":\"and\"}],\"_type\":\"or\"},\"_label\":\"Copy of Drew test\",\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":54,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":1,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":27,\"dx_filter_order\":4}},\"_readOnly\":false,\"_clonedFromId\":466}"} 200 (747ms)
✓ should clone a request (753ms)
Adds a title to a new request
170512/171928.113, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"write","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[],\"_children\":[],\"_type\":\"and\"},\"_label\":\"New Request Title Test 1\",\"_readOnly\":false,\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":0,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":0,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":0,\"dx_filter_order\":4}}}"} 200 (366ms)
✓ should add a title to a brand new request (371ms)
Adds a title to an existing request
170512/171928.486, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"write","json":"{\"_topGroup\":{\"_parentId\":null,\"_filters\":[{\"_parentId\":null,\"_attributes\":[{\"_attributeId\":1,\"_parentId\":null,\"_optionId\":\"ANAT\",\"_optionLabel\":\"ANAT\",\"_modalityId\":1,\"_attributeLabel\":\"Label\",\"_attributeDescription\":\"Label\",\"_options\":[]}],\"_type\":\"MR\",\"_modalityId\":1}],\"_children\":[],\"_type\":\"and\"},\"_label\":\"Untitled Request\",\"_readOnly\":false,\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":0,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":0,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":0,\"dx_filter_order\":4}}}"} 200 (538ms)
✓ Should start a new request and "write" the MR label ANAT (543ms)
170512/171929.032, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"write","json":"{\"_topGroup\":{\"_filters\":[{\"_attributes\":[{\"_attributeId\":1,\"_optionId\":\"ANAT\",\"_optionLabel\":\"ANAT\",\"_modalityId\":1,\"_attributeLabel\":\"Label\",\"_attributeDescription\":\"Label\",\"_options\":[],\"_parentId\":23646}],\"_statistics\":384,\"_type\":\"MR\",\"_modalityId\":1,\"_id\":23646,\"_parentId\":9832}],\"_children\":[],\"_type\":\"and\",\"_parentId\":5915,\"_id\":9832},\"_label\":\"My New Title\",\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":384,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":1,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":203,\"dx_filter_order\":4}},\"_readOnly\":false,\"_id\":5915}"} 200 (364ms)
✓ Add a title to an existing request (373ms)
GET generateSourceObject
170512/171929.402, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"generateSourceObject","json":"{\"_topGroup\":{\"_parentId\":3107,\"_filters\":[{\"_id\":11271,\"_parentId\":5023,\"_attributes\":[{\"_attributeId\":6,\"_parentId\":11271,\"_optionId\":\"'A00028995','A00030947','A00030989','A00034385','A00035625','A00035765','A00035943'\",\"_optionLabel\":\"USER_INPUT\",\"_modalityId\":142,\"_attributeLabel\":\"Anonymization Ids\",\"_options\":[]}],\"_statistics\":\"\",\"_type\":\"Subjects\",\"_modalityId\":142},{\"_id\":11273,\"_parentId\":5023,\"_attributes\":[{\"_attributeId\":1,\"_parentId\":11273,\"_optionId\":\"MPRAGE_SIEMENS_DEFACED\",\"_optionLabel\":\"MPRAGE_SIEMENS_DEFACED\",\"_modalityId\":1,\"_attributeLabel\":\"Label\",\"_options\":[]}],\"_statistics\":1108,\"_type\":\"MR\",\"_modalityId\":1}],\"_id\":5023,\"_children\":[],\"_type\":\"and\"},\"_id\":3107,\"_label\":\"Copy of REST_CAP\",\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":7,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":0,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":1,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":7,\"dx_filter_order\":4}},\"_readOnly\":false}"} 200 (596ms)
✓ Generates a source object (601ms)
170512/171931.149, (1494609570006:Corys-MacBook-Pro.local:2687:j2m3xyc7:10022) [request,error] data: invalid request id
170512/171930.006, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"request","action":"generateSourceObject","json":"{\"_topGroup\":{\"_parentId\":-1},\"_id\":5824,\"_label\":\"Untitled Request\",\"_modalities\":{\"MR\":{\"id\":1,\"label\":\"MR\",\"count\":1256,\"dx_filter_order\":1},\"Assessments\":{\"id\":112,\"label\":\"Assessments\",\"count\":61,\"dx_filter_order\":2},\"Studies\":{\"id\":143,\"label\":\"Studies\",\"count\":1,\"dx_filter_order\":3},\"Subjects\":{\"id\":142,\"label\":\"Subjects\",\"count\":61,\"dx_filter_order\":4}},\"_readOnly\":false}"} 400 (1145ms)
✓ Rejects with invalid parent ID (1152ms)
Group controller
Group load filter statistics
170512/171931.157, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"group","action":"loadFilterStatistics","json":"{\"_parentId\":4816,\"_filters\":[{\"_id\":19451,\"_parentId\":8164,\"_attributes\":[{\"_attributeId\":6,\"_parentId\":19451,\"_optionId\":\"'A00062989','A00062370','A00054581','A00065941','A00055921','A00066539','A00053490','A00066800','A00073525','A00073611','A00065250','A00065717','A00053171','A00059344','A00056020','A00057480','A00072203','A00065574','A00066154','A00065722','A00065565','A00066827','A00065873','A00055624','A00064418','A00065185','A00066236','A00065750','A00073677','A00066237','A00066462','A00065302','A00055612','A00066419','A00055693','A00066282','A00064597','A00039943','A00065379','A00065617','A00066460','A00065480','A00062997','A00065197','A00066788','A00056307','A00066698','A00062144','A00065178','A00066926','A00055267','A00060662','A00060773','A00065992','A00063383','A00066013','A00053320','A00065261','A00073288','A00066153','A00066248','A00066864','A00073230','A00066534','A00066396','A00065991','A00066582','A00058952','A00065865','A00073286','A00065263','A00064580','A00065572','A00066735','A00066581','A00073529','A00064061','A00064323','A00073705','A00066132','A00066246','A00066584','A00066871','A00073545','A00065478','A00066711','A00066090','A00066781','A00066812','A00065790','A00067174','A00066388','A00066091','A00066302','A00066319','A00064596','A00066860','A00066232','A00066580','A00065934','A00065792','A00065974','A00065487','A00064505','A00065935','A00058503','A00066865','A00065820','A00066389','A00066784','A00073953','A00066314','A00066573','A00066589','A00073283','A00060602','A00066087','A00065829','A00064507','A00065486','A00055122','A00066162','A00073308','A00063003','A00055076','A00066572','A00073600','A00065262','A00065995','A00059361','A00056138','A00055262','A00065802','A00067062','A00060582','A00066245','A00073942','A00066391','A00073296','A00065743','A00066697','A00074034','A00064503','A00066822','A00066130','A00051691','A00065611','A00040117','A00066831','A00061728','A00062369','A00066820','A00056746','A00065749'\",\"_optionLabel\":\"USER_INPUT\",\"_modalityId\":142,\"_attributeLabel\":\"Anonymization Ids\",\"_options\":[]}],\"_type\":\"Subjects\",\"_modalityId\":142}],\"_id\":8164,\"_children\":[],\"_type\":\"or\"}"} 200 (5ms)
✓ Load filter statistics with USER_INPUT as option label
170512/171931.166, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"group","action":"loadFilterStatistics","json":"{\"_parentId\":914,\"_filters\":[{\"_id\":1723,\"_parentId\":987,\"_attributes\":[{\"_attributeId\":22,\"_parentId\":1723,\"_optionId\":\"8100\",\"_optionLabel\":\"NKI-RSI (previously Discoverysci)\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_options\":[]}],\"_type\":\"Studies\",\"_modalityId\":143}],\"_id\":987,\"_children\":[{\"_parentId\":987,\"_filters\":[{\"_id\":1727,\"_parentId\":988,\"_attributes\":[{\"_attributeId\":3,\"_parentId\":1727,\"_optionId\":\"12983\",\"_optionLabel\":\"CBCL\",\"_modalityId\":112,\"_attributeLabel\":\"Label\",\"_options\":[]}],\"_type\":\"Assessments\",\"_modalityId\":112},{\"_id\":1724,\"_parentId\":988,\"_attributes\":[{\"_attributeId\":3,\"_parentId\":1724,\"_optionId\":\"11923\",\"_optionLabel\":\"YSR\",\"_modalityId\":112,\"_attributeLabel\":\"Label\",\"_options\":[]}],\"_type\":\"Assessments\",\"_modalityId\":112},{\"_id\":1726,\"_parentId\":988,\"_attributes\":[{\"_attributeId\":3,\"_parentId\":1726,\"_optionId\":\"11903\",\"_optionLabel\":\"ASR\",\"_modalityId\":112,\"_attributeLabel\":\"Label\",\"_options\":[]}],\"_type\":\"Assessments\",\"_modalityId\":112}],\"_id\":988,\"_children\":[],\"_type\":\"or\"}],\"_type\":\"and\"}"} 200 (370ms)
✓ Load filter statistics without USER_INPUT as option label (376ms)
GET delete
170512/171931.546, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"group","action":"delete","json":"{\"_parentId\":9224,\"_filters\":[{\"_id\":\"21274\",\"_parentId\":9225,\"_attributes\":[{\"_attributeId\":224,\"_parentId\":\"21274\",\"_optionId\":\"Baseline\",\"_optionLabel\":\"Baseline\",\"_modalityId\":1,\"_attributeLabel\":\"Visit\",\"_attributeDescription\":\"Visit\",\"_options\":[]}],\"_statistics\":\"720\",\"_type\":\"MR\",\"_modalityId\":1},{\"_id\":\"21275\",\"_parentId\":9225,\"_attributes\":[{\"_attributeId\":22,\"_parentId\":\"21275\",\"_optionId\":\"5320\",\"_optionLabel\":\"ABIDE\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[]}],\"_statistics\":\"1\",\"_type\":\"Studies\",\"_modalityId\":143}],\"_id\":9225,\"_children\":[],\"_type\":\"and\"}"} 200 (202ms)
✓ deletes a group by id (208ms)
170512/171931.878, (1494609571754:Corys-MacBook-Pro.local:2687:j2m3xyc7:10026) [request,error] data: submitted request
170512/171931.754, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"group","action":"delete","json":"{\"_filters\":[{\"_id\":\"21274\",\"_parentId\":9225,\"_attributes\":[{\"_attributeId\":224,\"_parentId\":\"21274\",\"_optionId\":\"Baseline\",\"_optionLabel\":\"Baseline\",\"_modalityId\":1,\"_attributeLabel\":\"Visit\",\"_attributeDescription\":\"Visit\",\"_options\":[]}],\"_statistics\":\"720\",\"_type\":\"MR\",\"_modalityId\":1},{\"_id\":\"21275\",\"_parentId\":9225,\"_attributes\":[{\"_attributeId\":22,\"_parentId\":\"21275\",\"_optionId\":\"5320\",\"_optionLabel\":\"ABIDE\",\"_modalityId\":143,\"_attributeLabel\":\"Study Name\",\"_attributeDescription\":\"Study Name\",\"_options\":[]}],\"_statistics\":\"1\",\"_type\":\"Studies\",\"_modalityId\":143}],\"_id\":1,\"_children\":[],\"_type\":\"and\"}"} 403 (125ms)
✓ Rejects when trying to delete from a submitted request (129ms)
Filter controller
GET getFormAttributes
170512/171931.884, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"filter","action":"getFormAttributes","json":"{\"_parentId\":null,\"_attributes\":[],\"_type\":\"Studies\",\"_modalityId\":143}"} 200 (226ms)
✓ with numeric option id (230ms)
170512/171932.114, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"filter","action":"getFormAttributes","json":"{\"_parentId\":null,\"_attributes\":[],\"_type\":\"Subjects\",\"_modalityId\":142}"} 200 (200ms)
✓ with text option id (205ms)
GET delete
170512/171932.321, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"filter","action":"delete","json":"{\"_id\":\"21272\",\"_parentId\":9224,\"_attributes\":[{\"_attributeId\":221,\"_parentId\":\"21272\",\"_optionId\":\"1\",\"_optionLabel\":\"Functional\",\"_modalityId\":1,\"_attributeLabel\":\"Collection Technique\",\"_attributeDescription\":\"Collection Technique\",\"_options\":[]}],\"_statistics\":\"8477\",\"_type\":\"MR\",\"_modalityId\":1}"} 200 (185ms)
✓ deletes filters by id (189ms)
170512/171932.639, (1494609572510:Corys-MacBook-Pro.local:2687:j2m3xyc7:10030) [request,error] data: submitted request
170512/171932.510, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /dataexchange {"objType":"filter","action":"delete","json":"{\"_id\":\"12196\",\"_parentId\":9224,\"_attributes\":[{\"_attributeId\":221,\"_parentId\":\"12196\",\"_optionId\":\"1\",\"_optionLabel\":\"Functional\",\"_modalityId\":1,\"_attributeLabel\":\"Collection Technique\",\"_attributeDescription\":\"Collection Technique\",\"_options\":[]}],\"_statistics\":\"8477\",\"_type\":\"MR\",\"_modalityId\":1}"} 403 (130ms)
✓ Rejects when trying to delete from a submitted request (134ms)
POST keys (login)
Unsuccessul login
170512/171932.870, (1494609572647:Corys-MacBook-Pro.local:2687:j2m3xyc7:10031) [request,error] data: Unknown username and password
170512/171932.647, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 401 (231ms)
✓ should respond with 401 if username or pwd are incorrect (235ms)
Successful login
Warning: Need to implement hist_table saving
170512/171932.882, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (887ms)
✓ Should return status-code 200
✓ Should should return a hawk auth object in payload
✓ Should respond with user
✓ Should should set a CAS_Auth_User cookie
DELETE keys (logout)
Successful logout
Warning: Need to implement hist_table saving
170512/171933.775, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (877ms)
170512/171934.660, [response,api,auth] http://Corys-MacBook-Pro.local:8800: delete /auth/keys/7b8d5d1c-32fb-4637-8890-4598d80c9e3f {} 200 (5ms)
✓ Should respond with 200 OK
✓ Should expire auth cookie
✓ Should unset the hawk key in the key store
- Should prohibit access to restricted resources
Already logged out
Warning: Need to implement hist_table saving
170512/171934.673, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (858ms)
170512/171935.534, [response,api,auth] http://Corys-MacBook-Pro.local:8800: delete /auth/keys/e3d3140c-c865-4138-a675-2d222a9d6614 {} 200 (5ms)
170512/171935.543, (1494609575542:Corys-MacBook-Pro.local:2687:j2m3xyc7:10037) [request,error] data: Unknown credentials
170512/171935.542, [response,api,auth] http://Corys-MacBook-Pro.local:8800: delete /auth/keys/e3d3140c-c865-4138-a675-2d222a9d6614 {} 401 (2ms)
✓ Should respond with 401 unauthorized
Successful login with coinstac flag
Warning: Need to implement hist_table saving
170512/171935.547, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (892ms)
✓ Should return status-code 200
✓ Should should return a hawk auth object in payload
Password Reset
- Should fail on request password reset for bad user
- Should fail on request password reset for multiple accounts
- Should request password reset
- Should fail on bad sessionId
- Should fail on empty password
- Should fail on bad token
- Should reset password
- Login with reset password
- Should request an expired password reset
- Should fail on expired token
- Should request old password reset
- Should reset password to old password
- Login with old password
responseFormatter
✓ Should format an internal error correctly
✓ Should format a custom error correctly
✓ Should format an array response properly
✓ Should format an object response properly
Scan routes
GET /scans
Warning: Need to implement hist_table saving
170512/171936.482, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (881ms)
Warning: Need to implement hist_table saving
170512/171937.367, [response,api,scans] http://Corys-MacBook-Pro.local:8800: get /scans {} 200 (233ms)
✓ Should return all scans (239ms)
170512/171937.607, [response,api,scans] http://Corys-MacBook-Pro.local:8800: get /scans {"ursi":"M99938215"} 200 (237ms)
✓ Should return scans by ursi (242ms)
170512/171937.848, [response,api,scans] http://Corys-MacBook-Pro.local:8800: get /scans {"studyId":8320} 200 (194ms)
✓ Should return scans by study (197ms)
- Should return a single scan by ID
GET /scans/id/
170512/171938.047, [response,api,auth] http://Corys-MacBook-Pro.local:8800: post /auth/keys {} 200 (871ms)
Warning: Need to implement hist_table saving
170512/171938.923, [response,api,scan-details] http://Corys-MacBook-Pro.local:8800: get /scans/366998 {} 200 (620ms)
✓ Should return all scans and series and series data (625ms)
POST /scans
- Should reject an invalid payload
- Should add a new scan with a valid payload
- Should reject with 400 if URSI is not enrolled in study
PUT /scans
- Should reject an invalid payload
- Should update an existing scan with a valid payload
- Should reject with 400 if URSI is not enrolled in study
Sites
GET /sites
170512/171939.739, (1494609579549:Corys-MacBook-Pro.local:2687:j2m3xyc7:10045) [request,error] data: "value" must be an object. "value" at position 0 fails because ["ursiPrefix" is not allowed, "timezoneName" is not allowed, "siteDirName" is not allowed]
170512/171939.549, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /sites {} 500 (191ms)
1) Gets all sites
170512/171940.182, (1494609579764:Corys-MacBook-Pro.local:2687:j2m3xyc7:10046) [request,error] data: "value" must be an object. "value" at position 0 fails because [child "siteConfig" fails because ["siteId" is not allowed, "enableRadiologyReviews" is not allowed, "enableBilling" is not allowed, "defaultAreaCode" is not allowed, "defaultCity" is not allowed, "defaultState" is not allowed, "imagingStorageMountPoint" is not allowed, "imagingLostAndFoundDirectory" is not allowed, "directoryNameConvention" is not allowed, "sendExpirationEmails" is not allowed, "newUserWelcomeMsg" is not allowed, "expirationSummaryRecipients" is not allowed, "sendInstNotifications" is not allowed, "enablePiUnlockInst" is not allowed, "shareMissAsmtReason" is not allowed, "enableStudyChangeReason" is not allowed, "enableAutoBackfill" is not allowed, "enableSubjectAutocomplete" is not allowed, "siteLogo" is not allowed, "siteCssUrl" is not allowed, "allowP2SelfEnrollment" is not allowed, "autoSendScanToRadWorklist" is not allowed, "autoSendScanToMrnOwncloud" is not allowed, "autoMarkPreviouslyReadScans" is not allowed, "subjectEmailRequired" is not allowed, "radReviewCompletedEmail" is not allowed, "radReviewCompletedMessage" is not allowed, "showP2Options" is not allowed, "automaticRadReviewEmail" is not allowed]]
170512/171939.764, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /sites {"withRelated":true} 500 (419ms)
2) Gets all sites with related
170512/171940.378, (1494609580197:Corys-MacBook-Pro.local:2687:j2m3xyc7:10047) [request,error] data: "ursiPrefix" is not allowed. "timezoneName" is not allowed. "siteDirName" is not allowed. "value" must be an array
170512/171940.197, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /sites {"siteId":"99"} 500 (183ms)
3) Gets specific site
170512/171940.765, (1494609580395:Corys-MacBook-Pro.local:2687:j2m3xyc7:10048) [request,error] data: child "siteConfig" fails because ["siteId" is not allowed, "enableRadiologyReviews" is not allowed, "enableBilling" is not allowed, "defaultAreaCode" is not allowed, "defaultCity" is not allowed, "defaultState" is not allowed, "imagingStorageMountPoint" is not allowed, "imagingLostAndFoundDirectory" is not allowed, "directoryNameConvention" is not allowed, "sendExpirationEmails" is not allowed, "newUserWelcomeMsg" is not allowed, "expirationSummaryRecipients" is not allowed, "sendInstNotifications" is not allowed, "enablePiUnlockInst" is not allowed, "shareMissAsmtReason" is not allowed, "enableStudyChangeReason" is not allowed, "enableAutoBackfill" is not allowed, "enableSubjectAutocomplete" is not allowed, "siteLogo" is not allowed, "siteCssUrl" is not allowed, "allowP2SelfEnrollment" is not allowed, "autoSendScanToRadWorklist" is not allowed, "autoSendScanToMrnOwncloud" is not allowed, "autoMarkPreviouslyReadScans" is not allowed, "subjectEmailRequired" is not allowed, "radReviewCompletedEmail" is not allowed, "radReviewCompletedMessage" is not allowed, "showP2Options" is not allowed, "automaticRadReviewEmail" is not allowed]. "value" must be an array
170512/171940.395, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /sites {"siteId":"99","withRelated":true} 500 (371ms)
4) Gets specific site with related
170512/171940.973, (1494609580780:Corys-MacBook-Pro.local:2687:j2m3xyc7:10049) [request,error] data: bad siteId
170512/171940.780, [response,api,sites] http://Corys-MacBook-Pro.local:8800: get /sites {"siteId":"abc"} 422 (194ms)
✓ Returns error on bad siteId (198ms)
Statistics
170512/171940.981, [response,api,statistics] http://Corys-MacBook-Pro.local:8800: get /statistics {} 200 (191ms)
✓ GET /statistics (195ms)
Users
POST /users
Warning: Need to implement hist_table saving
170512/171941.177, [response,api,users] http://Corys-MacBook-Pro.local:8800: post /users {} 200 (889ms)
✓ Posts a new user (892ms)
170512/171942.262, (1494609582070:Corys-MacBook-Pro.local:2687:j2m3xyc7:10052) [request,error,users] data: User data already exists
170512/171942.263, (1494609582070:Corys-MacBook-Pro.local:2687:j2m3xyc7:10052) [request,error] data: User data already exists
170512/171942.070, [response,api,users] http://Corys-MacBook-Pro.local:8800: post /users {} 422 (194ms)
✓ Prevents a user with an existing username (198ms)
170512/171942.456, (1494609582267:Corys-MacBook-Pro.local:2687:j2m3xyc7:10053) [request,error,users] data: User data already exists
170512/171942.457, (1494609582267:Corys-MacBook-Pro.local:2687:j2m3xyc7:10053) [request,error] data: User data already exists
170512/171942.267, [response,api,users] http://Corys-MacBook-Pro.local:8800: post /users {} 422 (191ms)
✓ Prevents a new user with an existing email (194ms)
170512/171942.464, (1494609582462:Corys-MacBook-Pro.local:2687:j2m3xyc7:10054) [request,error] data: ValidationError: child "password" fails because ["password" is not allowed to be empty]
170512/171942.462, [response,api,users] http://Corys-MacBook-Pro.local:8800: post /users {} 422 (3ms)
✓ Prevents a new user with an empty password
170512/171942.469, [response,api,users,check] http://Corys-MacBook-Pro.local:8800: get /users/check {"username":{"type":"Buffer","data":[109,111,99,104,97,116,101,115,116]}} 200 (184ms)
✓ Checks for an existing username (188ms)
170512/171942.657, [response,api,users,check] http://Corys-MacBook-Pro.local:8800: get /users/check {"email":"trash@mrn.org"} 200 (188ms)
✓ Checks for an existing email (191ms)
170512/171942.849, [response,api,users,check] http://Corys-MacBook-Pro.local:8800: get /users/check {"username":{"type":"Buffer","data":[97]}} 200 (187ms)
✓ Checks for an non existing user (190ms)
Version
170512/171943.039, [response,api] http://Corys-MacBook-Pro.local:8800: get /api/version {} 200 (1ms)
✓ should respond with 200 status code
170512/171943.042, [response,api] http://Corys-MacBook-Pro.local:8800: get /api/version {} 200 (1ms)
✓ Should give version equal to package version
User model
✓ sanitizes user model
casCookieUtils
generate
✓ should return a string
✓ should exclude protected keys from JWT (46ms)
verifyAndParse
✓ should return a promise
✓ should parse a valid jwt (61ms)
✓ should reject an invalid JWT
✓ should reject a valid JWT with an invalid Hawk ID (56ms)
invalidate
✓ should return an invalidated string
Dataexchange tests
Request controller
Get 'read only'
✓ Checks request and auth username
✓ Checks submitted date
✓ Confirms writeability
loadFromId
✓ Rejects when request doesn't have groups or filters
✓ Rejects when request's groups are deeply nested
write
✓ Forbids writes on submitted requests
Generate source request object
✓ Passes external error messages
Group controller
delete
✓ Rejects when delete function returns unexpected ID
Filter controller
delete
✓ Rejects when delete function returns unexpected ID
helpers
toNumber
✓ should convert number-like values to numbers
✓ should return non-number-like values
statistics controller
✓ should wrap errors
79 passing (22s)
21 pending
4 failing
1) Sites GET /sites Gets all sites:
Error: the object {
"config": {
"adapter": [Function]
"data": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"rSmjtc\", mac=\"5l2Q/zHFzAQP0mbaMSuZm1k2HpeTiRgoKxBXxnFDVZk=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"maxContentLength": -1
"method": "get"
"timeout": 0
"transformRequest": {
"0": [Function]
}
"transformResponse": {
"0": [Function]
}
"url": "http://localhost:8800/sites"
"validateStatus": [Function]
"withCredentials": true
"xsrfCookieName": "XSRF-TOKEN"
"xsrfHeaderName": "X-XSRF-TOKEN"
}
"data": {
"data": []
"error": {
"error": "Internal Server Error"
"message": "An internal server error occurred"
"statusCode": 500
}
"stats": {}
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:39 GMT"
}
"request": {
"_currentRequest": {
"_contentLength": 0
"_ended": true
"_events": {
"abort": [Function]
"aborted": [Function]
"error": [Function]
"prefinish": [Function]
}
"_eventsCount": 4
"_hasBody": true
"_header": "GET /sites HTTP/1.1\r\nCookie: CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8\r\nAuthorization: Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"rSmjtc\", mac=\"5l2Q/zHFzAQP0mbaMSuZm1k2HpeTiRgoKxBXxnFDVZk=\"\r\nx-forwarded-host: localhost:8800\r\nUser-Agent: axios/0.15.3\r\nHost: localhost:8800\r\nConnection: close\r\n\r\n"
"_headerNames": {
"authorization": "Authorization"
"cookie": "Cookie"
"host": "Host"
"user-agent": "User-Agent"
"x-forwarded-host": "x-forwarded-host"
}
"_headerSent": true
"_headers": {
"authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"rSmjtc\", mac=\"5l2Q/zHFzAQP0mbaMSuZm1k2HpeTiRgoKxBXxnFDVZk=\""
"cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"host": "localhost:8800"
"user-agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"_last": true
"_maxListeners": [undefined]
"_onPendingData": [null]
"_redirectable": [Circular]
"_removedHeader": {}
"_trailer": ""
"aborted": [undefined]
"agent": {
"_events": {
"free": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"defaultPort": 80
"domain": [null]
"freeSockets": {}
"keepAlive": false
"keepAliveMsecs": 1000
"maxFreeSockets": 256
"maxSockets": Infinity
"options": {
"path": [null]
}
"protocol": "http:"
"requests": {}
"sockets": {
"localhost:8800:": [
{
"_bytesDispatched": 935
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
]
}
}
"chunkedEncoding": false
"connection": {
"_bytesDispatched": 935
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"finished": true
"maxHeadersCount": [null]
"method": "GET"
"output": []
"outputCallbacks": []
"outputEncodings": []
"outputSize": 0
"parser": [null]
"path": "/sites"
"res": {
"_consuming": true
"_dumped": false
"_events": {
"data": [Function]
"end": [
[Function]
[Function]
]
"error": [Function]
}
"_eventsCount": 3
"_maxListeners": [undefined]
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": true
"ended": true
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": false
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": false
"readingMore": false
"resumeScheduled": false
"sync": true
}
"client": {
"_bytesDispatched": 935
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"complete": true
"connection": {
"_bytesDispatched": 935
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:39 GMT"
}
"httpVersion": "1.1"
"httpVersionMajor": 1
"httpVersionMinor": 1
"method": [null]
"rawHeaders": [
"content-type"
"application/json; charset=utf-8"
"cache-control"
"no-cache"
"content-length"
"127"
"Date"
"Fri, 12 May 2017 17:19:39 GMT"
"Connection"
"close"
]
"rawTrailers": []
"read": [Function]
"readable": false
"req": [Circular]
"responseUrl": "http://localhost:8800"
"socket": {
"_bytesDispatched": 935
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"statusCode": 500
"statusMessage": "Internal Server Error"
"trailers": {}
"upgrade": false
"url": ""
}
"sendDate": false
"shouldKeepAlive": false
"socket": {
"_bytesDispatched": 935
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"socketPath": [undefined]
"timeout": [undefined]
"timeoutCb": [null]
"upgradeOrConnect": false
"upgrading": false
"useChunkedEncodingByDefault": false
"writable": true
}
"_currentUrl": "http://localhost:8800"
"_events": {
"error": [Function]
"response": [Function]
}
"_eventsCount": 2
"_maxListeners": [undefined]
"_onNativeResponse": [Function]
"_options": {
"agent": [undefined]
"auth": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"rSmjtc\", mac=\"5l2Q/zHFzAQP0mbaMSuZm1k2HpeTiRgoKxBXxnFDVZk=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"hostname": "localhost"
"maxRedirects": 21
"method": "get"
"path": "/sites"
"port": "8800"
"protocol": "http:"
}
"_redirectCount": 0
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": true
"defaultEncoding": "utf8"
"ended": false
"ending": false
"errorEmitted": false
"finished": false
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": false
"sync": true
"writecb": [null]
"writelen": 0
"writing": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"writable": true
}
"status": 500
"statusText": "Internal Server Error"
} was thrown, throw an Error :)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
2) Sites GET /sites Gets all sites with related:
Error: the object {
"config": {
"adapter": [Function]
"data": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"sKl1OE\", mac=\"AevoUkK8iQy6mIEs41EvCw9H+wW0umGTbHZCodrortc=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"maxContentLength": -1
"method": "get"
"timeout": 0
"transformRequest": {
"0": [Function]
}
"transformResponse": {
"0": [Function]
}
"url": "http://localhost:8800/sites?withRelated=true"
"validateStatus": [Function]
"withCredentials": true
"xsrfCookieName": "XSRF-TOKEN"
"xsrfHeaderName": "X-XSRF-TOKEN"
}
"data": {
"data": []
"error": {
"error": "Internal Server Error"
"message": "An internal server error occurred"
"statusCode": 500
}
"stats": {}
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:40 GMT"
}
"request": {
"_currentRequest": {
"_contentLength": 0
"_ended": true
"_events": {
"abort": [Function]
"aborted": [Function]
"error": [Function]
"prefinish": [Function]
}
"_eventsCount": 4
"_hasBody": true
"_header": "GET /sites?withRelated=true HTTP/1.1\r\nCookie: CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8\r\nAuthorization: Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"sKl1OE\", mac=\"AevoUkK8iQy6mIEs41EvCw9H+wW0umGTbHZCodrortc=\"\r\nx-forwarded-host: localhost:8800\r\nUser-Agent: axios/0.15.3\r\nHost: localhost:8800\r\nConnection: close\r\n\r\n"
"_headerNames": {
"authorization": "Authorization"
"cookie": "Cookie"
"host": "Host"
"user-agent": "User-Agent"
"x-forwarded-host": "x-forwarded-host"
}
"_headerSent": true
"_headers": {
"authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"sKl1OE\", mac=\"AevoUkK8iQy6mIEs41EvCw9H+wW0umGTbHZCodrortc=\""
"cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"host": "localhost:8800"
"user-agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"_last": true
"_maxListeners": [undefined]
"_onPendingData": [null]
"_redirectable": [Circular]
"_removedHeader": {}
"_trailer": ""
"aborted": [undefined]
"agent": {
"_events": {
"free": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"defaultPort": 80
"domain": [null]
"freeSockets": {}
"keepAlive": false
"keepAliveMsecs": 1000
"maxFreeSockets": 256
"maxSockets": Infinity
"options": {
"path": [null]
}
"protocol": "http:"
"requests": {}
"sockets": {
"localhost:8800:": [
{
"_bytesDispatched": 952
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
]
}
}
"chunkedEncoding": false
"connection": {
"_bytesDispatched": 952
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"finished": true
"maxHeadersCount": [null]
"method": "GET"
"output": []
"outputCallbacks": []
"outputEncodings": []
"outputSize": 0
"parser": [null]
"path": "/sites?withRelated=true"
"res": {
"_consuming": true
"_dumped": false
"_events": {
"data": [Function]
"end": [
[Function]
[Function]
]
"error": [Function]
}
"_eventsCount": 3
"_maxListeners": [undefined]
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": true
"ended": true
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": false
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": false
"readingMore": false
"resumeScheduled": false
"sync": true
}
"client": {
"_bytesDispatched": 952
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"complete": true
"connection": {
"_bytesDispatched": 952
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:40 GMT"
}
"httpVersion": "1.1"
"httpVersionMajor": 1
"httpVersionMinor": 1
"method": [null]
"rawHeaders": [
"content-type"
"application/json; charset=utf-8"
"cache-control"
"no-cache"
"content-length"
"127"
"Date"
"Fri, 12 May 2017 17:19:40 GMT"
"Connection"
"close"
]
"rawTrailers": []
"read": [Function]
"readable": false
"req": [Circular]
"responseUrl": "http://localhost:8800"
"socket": {
"_bytesDispatched": 952
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"statusCode": 500
"statusMessage": "Internal Server Error"
"trailers": {}
"upgrade": false
"url": ""
}
"sendDate": false
"shouldKeepAlive": false
"socket": {
"_bytesDispatched": 952
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"socketPath": [undefined]
"timeout": [undefined]
"timeoutCb": [null]
"upgradeOrConnect": false
"upgrading": false
"useChunkedEncodingByDefault": false
"writable": true
}
"_currentUrl": "http://localhost:8800"
"_events": {
"error": [Function]
"response": [Function]
}
"_eventsCount": 2
"_maxListeners": [undefined]
"_onNativeResponse": [Function]
"_options": {
"agent": [undefined]
"auth": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609579\", nonce=\"sKl1OE\", mac=\"AevoUkK8iQy6mIEs41EvCw9H+wW0umGTbHZCodrortc=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"hostname": "localhost"
"maxRedirects": 21
"method": "get"
"path": "/sites?withRelated=true"
"port": "8800"
"protocol": "http:"
}
"_redirectCount": 0
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": true
"defaultEncoding": "utf8"
"ended": false
"ending": false
"errorEmitted": false
"finished": false
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": false
"sync": true
"writecb": [null]
"writelen": 0
"writing": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"writable": true
}
"status": 500
"statusText": "Internal Server Error"
} was thrown, throw an Error :)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
3) Sites GET /sites Gets specific site:
Error: the object {
"config": {
"adapter": [Function]
"data": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"ORYs23\", mac=\"cz/+dWKrgyfs+zsMMJVw+qFsIvyiaTDWB/FdsJuCXOM=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"maxContentLength": -1
"method": "get"
"timeout": 0
"transformRequest": {
"0": [Function]
}
"transformResponse": {
"0": [Function]
}
"url": "http://localhost:8800/sites?siteId=99"
"validateStatus": [Function]
"withCredentials": true
"xsrfCookieName": "XSRF-TOKEN"
"xsrfHeaderName": "X-XSRF-TOKEN"
}
"data": {
"data": []
"error": {
"error": "Internal Server Error"
"message": "An internal server error occurred"
"statusCode": 500
}
"stats": {}
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:40 GMT"
}
"request": {
"_currentRequest": {
"_contentLength": 0
"_ended": true
"_events": {
"abort": [Function]
"aborted": [Function]
"error": [Function]
"prefinish": [Function]
}
"_eventsCount": 4
"_hasBody": true
"_header": "GET /sites?siteId=99 HTTP/1.1\r\nCookie: CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8\r\nAuthorization: Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"ORYs23\", mac=\"cz/+dWKrgyfs+zsMMJVw+qFsIvyiaTDWB/FdsJuCXOM=\"\r\nx-forwarded-host: localhost:8800\r\nUser-Agent: axios/0.15.3\r\nHost: localhost:8800\r\nConnection: close\r\n\r\n"
"_headerNames": {
"authorization": "Authorization"
"cookie": "Cookie"
"host": "Host"
"user-agent": "User-Agent"
"x-forwarded-host": "x-forwarded-host"
}
"_headerSent": true
"_headers": {
"authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"ORYs23\", mac=\"cz/+dWKrgyfs+zsMMJVw+qFsIvyiaTDWB/FdsJuCXOM=\""
"cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"host": "localhost:8800"
"user-agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"_last": true
"_maxListeners": [undefined]
"_onPendingData": [null]
"_redirectable": [Circular]
"_removedHeader": {}
"_trailer": ""
"aborted": [undefined]
"agent": {
"_events": {
"free": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"defaultPort": 80
"domain": [null]
"freeSockets": {}
"keepAlive": false
"keepAliveMsecs": 1000
"maxFreeSockets": 256
"maxSockets": Infinity
"options": {
"path": [null]
}
"protocol": "http:"
"requests": {}
"sockets": {
"localhost:8800:": [
{
"_bytesDispatched": 945
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
]
}
}
"chunkedEncoding": false
"connection": {
"_bytesDispatched": 945
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"finished": true
"maxHeadersCount": [null]
"method": "GET"
"output": []
"outputCallbacks": []
"outputEncodings": []
"outputSize": 0
"parser": [null]
"path": "/sites?siteId=99"
"res": {
"_consuming": true
"_dumped": false
"_events": {
"data": [Function]
"end": [
[Function]
[Function]
]
"error": [Function]
}
"_eventsCount": 3
"_maxListeners": [undefined]
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": true
"ended": true
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": false
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": false
"readingMore": false
"resumeScheduled": false
"sync": true
}
"client": {
"_bytesDispatched": 945
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"complete": true
"connection": {
"_bytesDispatched": 945
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:40 GMT"
}
"httpVersion": "1.1"
"httpVersionMajor": 1
"httpVersionMinor": 1
"method": [null]
"rawHeaders": [
"content-type"
"application/json; charset=utf-8"
"cache-control"
"no-cache"
"content-length"
"127"
"Date"
"Fri, 12 May 2017 17:19:40 GMT"
"Connection"
"close"
]
"rawTrailers": []
"read": [Function]
"readable": false
"req": [Circular]
"responseUrl": "http://localhost:8800"
"socket": {
"_bytesDispatched": 945
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"statusCode": 500
"statusMessage": "Internal Server Error"
"trailers": {}
"upgrade": false
"url": ""
}
"sendDate": false
"shouldKeepAlive": false
"socket": {
"_bytesDispatched": 945
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"socketPath": [undefined]
"timeout": [undefined]
"timeoutCb": [null]
"upgradeOrConnect": false
"upgrading": false
"useChunkedEncodingByDefault": false
"writable": true
}
"_currentUrl": "http://localhost:8800"
"_events": {
"error": [Function]
"response": [Function]
}
"_eventsCount": 2
"_maxListeners": [undefined]
"_onNativeResponse": [Function]
"_options": {
"agent": [undefined]
"auth": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"ORYs23\", mac=\"cz/+dWKrgyfs+zsMMJVw+qFsIvyiaTDWB/FdsJuCXOM=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"hostname": "localhost"
"maxRedirects": 21
"method": "get"
"path": "/sites?siteId=99"
"port": "8800"
"protocol": "http:"
}
"_redirectCount": 0
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": true
"defaultEncoding": "utf8"
"ended": false
"ending": false
"errorEmitted": false
"finished": false
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": false
"sync": true
"writecb": [null]
"writelen": 0
"writing": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"writable": true
}
"status": 500
"statusText": "Internal Server Error"
} was thrown, throw an Error :)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
4) Sites GET /sites Gets specific site with related:
Error: the object {
"config": {
"adapter": [Function]
"data": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"0Fcorc\", mac=\"waVZO8KJN8z24oQsfZkvlnAoF1V3Ieyvpz5YQ3bAs7c=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"maxContentLength": -1
"method": "get"
"timeout": 0
"transformRequest": {
"0": [Function]
}
"transformResponse": {
"0": [Function]
}
"url": "http://localhost:8800/sites?siteId=99&withRelated=true"
"validateStatus": [Function]
"withCredentials": true
"xsrfCookieName": "XSRF-TOKEN"
"xsrfHeaderName": "X-XSRF-TOKEN"
}
"data": {
"data": []
"error": {
"error": "Internal Server Error"
"message": "An internal server error occurred"
"statusCode": 500
}
"stats": {}
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:40 GMT"
}
"request": {
"_currentRequest": {
"_contentLength": 0
"_ended": true
"_events": {
"abort": [Function]
"aborted": [Function]
"error": [Function]
"prefinish": [Function]
}
"_eventsCount": 4
"_hasBody": true
"_header": "GET /sites?siteId=99&withRelated=true HTTP/1.1\r\nCookie: CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8\r\nAuthorization: Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"0Fcorc\", mac=\"waVZO8KJN8z24oQsfZkvlnAoF1V3Ieyvpz5YQ3bAs7c=\"\r\nx-forwarded-host: localhost:8800\r\nUser-Agent: axios/0.15.3\r\nHost: localhost:8800\r\nConnection: close\r\n\r\n"
"_headerNames": {
"authorization": "Authorization"
"cookie": "Cookie"
"host": "Host"
"user-agent": "User-Agent"
"x-forwarded-host": "x-forwarded-host"
}
"_headerSent": true
"_headers": {
"authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"0Fcorc\", mac=\"waVZO8KJN8z24oQsfZkvlnAoF1V3Ieyvpz5YQ3bAs7c=\""
"cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"host": "localhost:8800"
"user-agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"_last": true
"_maxListeners": [undefined]
"_onPendingData": [null]
"_redirectable": [Circular]
"_removedHeader": {}
"_trailer": ""
"aborted": [undefined]
"agent": {
"_events": {
"free": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"defaultPort": 80
"domain": [null]
"freeSockets": {}
"keepAlive": false
"keepAliveMsecs": 1000
"maxFreeSockets": 256
"maxSockets": Infinity
"options": {
"path": [null]
}
"protocol": "http:"
"requests": {}
"sockets": {
"localhost:8800:": [
{
"_bytesDispatched": 962
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
]
}
}
"chunkedEncoding": false
"connection": {
"_bytesDispatched": 962
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"finished": true
"maxHeadersCount": [null]
"method": "GET"
"output": []
"outputCallbacks": []
"outputEncodings": []
"outputSize": 0
"parser": [null]
"path": "/sites?siteId=99&withRelated=true"
"res": {
"_consuming": true
"_dumped": false
"_events": {
"data": [Function]
"end": [
[Function]
[Function]
]
"error": [Function]
}
"_eventsCount": 3
"_maxListeners": [undefined]
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": true
"ended": true
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": false
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": false
"readingMore": false
"resumeScheduled": false
"sync": true
}
"client": {
"_bytesDispatched": 962
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"complete": true
"connection": {
"_bytesDispatched": 962
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"headers": {
"cache-control": "no-cache"
"connection": "close"
"content-length": "127"
"content-type": "application/json; charset=utf-8"
"date": "Fri, 12 May 2017 17:19:40 GMT"
}
"httpVersion": "1.1"
"httpVersionMajor": 1
"httpVersionMinor": 1
"method": [null]
"rawHeaders": [
"content-type"
"application/json; charset=utf-8"
"cache-control"
"no-cache"
"content-length"
"127"
"Date"
"Fri, 12 May 2017 17:19:40 GMT"
"Connection"
"close"
]
"rawTrailers": []
"read": [Function]
"readable": false
"req": [Circular]
"responseUrl": "http://localhost:8800"
"socket": {
"_bytesDispatched": 962
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"statusCode": 500
"statusMessage": "Internal Server Error"
"trailers": {}
"upgrade": false
"url": ""
}
"sendDate": false
"shouldKeepAlive": false
"socket": {
"_bytesDispatched": 962
"_consuming": true
"_events": {
"_socketEnd": [Function]
"agentRemove": [Function]
"close": [
[Function]
[Function]
]
"drain": [Function]
"end": {
"listener": [Function]
}
"error": [Function]
"finish": [Function]
"free": [Function]
}
"_eventsCount": 8
"_hadError": false
"_handle": [null]
"_host": "localhost"
"_httpMessage": [Circular]
"_idleNext": [null]
"_idlePrev": [null]
"_idleTimeout": -1
"_maxListeners": [undefined]
"_parent": [null]
"_pendingData": [null]
"_pendingEncoding": ""
"_readableState": {
"awaitDrain": 0
"buffer": {
"head": [null]
"length": 0
"tail": [null]
}
"decoder": [null]
"defaultEncoding": "utf8"
"emittedReadable": false
"encoding": [null]
"endEmitted": false
"ended": false
"flowing": true
"highWaterMark": 16384
"length": 0
"needReadable": true
"objectMode": false
"pipes": [null]
"pipesCount": 0
"ranOut": false
"readableListening": false
"reading": true
"readingMore": false
"resumeScheduled": false
"sync": false
}
"_server": [null]
"_sockname": [null]
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": false
"defaultEncoding": "utf8"
"ended": true
"ending": true
"errorEmitted": false
"finished": true
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": true
"sync": false
"writecb": [null]
"writelen": 0
"writing": false
}
"allowHalfOpen": false
"connecting": false
"destroyed": true
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"parser": [null]
"read": [Function]
"readable": false
"server": [null]
"writable": false
}
"socketPath": [undefined]
"timeout": [undefined]
"timeoutCb": [null]
"upgradeOrConnect": false
"upgrading": false
"useChunkedEncodingByDefault": false
"writable": true
}
"_currentUrl": "http://localhost:8800"
"_events": {
"error": [Function]
"response": [Function]
}
"_eventsCount": 2
"_maxListeners": [undefined]
"_onNativeResponse": [Function]
"_options": {
"agent": [undefined]
"auth": [undefined]
"headers": {
"Authorization": "Hawk id=\"d873f344-698d-4341-9fed-b123c39df080\", ts=\"1494609580\", nonce=\"0Fcorc\", mac=\"waVZO8KJN8z24oQsfZkvlnAoF1V3Ieyvpz5YQ3bAs7c=\""
"Cookie": "CAS_Auth_User-Corys-MacBook-Pro.local=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VybmFtZSI6Im1vY2hhdGVzdCIsInVzZXIiOnsidXNlcm5hbWUiOiJtb2NoYXRlc3QiLCJsYWJlbCI6Im1vY2hhIHRlc3QiLCJhY3RpdmVGbGFnIjoiWSIsImFjY3RFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwicGFzc3dvcmRFeHBEYXRlIjoiMjIyMC0wMS0wMVQwODowMDowMC4wMDBaIiwic2l0ZUlkIjoiOTkiLCJpc1NpdGVBZG1pbiI6Ik4iLCJlbWFpbCI6InRyYXNoQG1ybi5vcmciLCJlbWFpbFVuc3Vic2NyaWJlZCI6ZmFsc2UsImRhdGVBZGRlZCI6bnVsbH0sImlkIjoiNjA2OTliNzAtMDI1ZS00NDE5LWI1NjAtMjIxYmZiMTFhM2MxIiwic3R1ZHlSb2xlcyI6eyI4MzIwIjpbImNvb3JkaW5hdG9yIiwicGkiXX0sImlhdCI6MTQ5NDYwOTU2NCwiZXhwIjoxNDk0NjEzMTY0fQ.kCo6D0AZBA2cqrUCXyauCwBQ2lwL6ajm4oImM3eQEE8"
"User-Agent": "axios/0.15.3"
"x-forwarded-host": "localhost:8800"
}
"hostname": "localhost"
"maxRedirects": 21
"method": "get"
"path": "/sites?siteId=99&withRelated=true"
"port": "8800"
"protocol": "http:"
}
"_redirectCount": 0
"_writableState": {
"bufferProcessing": false
"bufferedRequest": [null]
"bufferedRequestCount": 0
"corked": 0
"corkedRequestsFree": {
"entry": [null]
"finish": [Function]
"next": [null]
}
"decodeStrings": true
"defaultEncoding": "utf8"
"ended": false
"ending": false
"errorEmitted": false
"finished": false
"highWaterMark": 16384
"lastBufferedRequest": [null]
"length": 0
"needDrain": false
"objectMode": false
"onwrite": [Function]
"pendingcb": 0
"prefinished": false
"sync": true
"writecb": [null]
"writelen": 0
"writing": false
}
"domain": {
"_events": {
"error": [Function]
}
"_eventsCount": 1
"_maxListeners": [undefined]
"domain": [null]
"members": []
}
"writable": true
}
"status": 500
"statusText": "Internal Server Error"
} was thrown, throw an Error :)
at process._tickDomainCallback (internal/process/next_tick.js:135:7)
=============================== Coverage summary ===============================
Statements : 86.78% ( 781/900 )
Branches : 76.82% ( 179/233 )
Functions : 85.93% ( 171/199 )
Lines : 86.66% ( 747/862 )
================================================================================
npm ERR! Test failed. See above for more details.
~/Sites/quarterback/packages/steelpenny$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment