paperos-labs / feedback

Just a bug and ideas board
0 stars 0 forks source link

Cannot Add new individuals (or any any resources) through the reports view - all environments #233

Closed danielandelin closed 2 years ago

danielandelin commented 2 years ago

image

wmerfalen commented 2 years ago

error log

May 06 17:54:10 staging-1.savvi.legal node[28064]: GET /api/account/resource/?resource_type_id=1 200 20506 - 15.870 ms
May 06 17:54:13 staging-1.savvi.legal node[28064]: GET /api/account/storage/folder?path=Team 200 62 - 733.706 ms
May 06 17:54:13 staging-1.savvi.legal node[28064]: GET /api/account/storage/folder?path=Entity/Governance 200 62 - 961.063 ms
May 06 17:54:18 staging-1.savvi.legal node[28064]: [Error] Unexpected internal error #kVbbSGrN:
May 06 17:54:18 staging-1.savvi.legal node[28064]: insert.name.trim is not a function
May 06 17:54:18 staging-1.savvi.legal node[28064]: [TypeError: insert.name.trim is not a function
May 06 17:54:18 staging-1.savvi.legal node[28064]:     rPostRoot           |117 |/src/api/routes/resource.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     handleResult        |113 |/node_modules/@root/async-router/lib/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     asyncWrapper2       |80  |/node_modules/@root/async-router/lib/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     handleResult        |113 |/node_modules/@root/async-router/lib/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     asyncWrapper2       |80  |/node_modules/@root/async-router/lib/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     handle              |95  |/node_modules/express/lib/router/layer.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     next                |137 |/node_modules/express/lib/router/route.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     dispatch            |112 |/node_modules/express/lib/router/route.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     handle              |95  |/node_modules/express/lib/router/layer.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     null                |281 |/node_modules/express/lib/router/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     process_params      |335 |/node_modules/express/lib/router/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     next                |275 |/node_modules/express/lib/router/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     handle              |91  |/node_modules/express/lib/router/layer.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     trim_prefix         |317 |/node_modules/express/lib/router/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     null                |284 |/node_modules/express/lib/router/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]:     process_params      |335 |/node_modules/express/lib/router/index.js
May 06 17:54:18 staging-1.savvi.legal node[28064]: ] {
May 06 17:54:18 staging-1.savvi.legal node[28064]:   toJSON: [Function (anonymous)],
May 06 17:54:18 staging-1.savvi.legal node[28064]:   _id: '#kVbbSGrN',
May 06 17:54:18 staging-1.savvi.legal node[28064]:   _method: 'POST',
May 06 17:54:18 staging-1.savvi.legal node[28064]:   _url: '/api/account/resource',
May 06 17:54:18 staging-1.savvi.legal node[28064]:   _standardized: undefined,
May 06 17:54:18 staging-1.savvi.legal node[28064]:   file_stack: [
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'rPostRoot           |117 |/src/api/routes/resource.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'handleResult        |113 |/node_modules/@root/async-router/lib/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'asyncWrapper2       |80  |/node_modules/@root/async-router/lib/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'handleResult        |113 |/node_modules/@root/async-router/lib/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'asyncWrapper2       |80  |/node_modules/@root/async-router/lib/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'handle              |95  |/node_modules/express/lib/router/layer.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'next                |137 |/node_modules/express/lib/router/route.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'dispatch            |112 |/node_modules/express/lib/router/route.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'handle              |95  |/node_modules/express/lib/router/layer.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'null                |281 |/node_modules/express/lib/router/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'process_params      |335 |/node_modules/express/lib/router/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'next                |275 |/node_modules/express/lib/router/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'handle              |91  |/node_modules/express/lib/router/layer.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'trim_prefix         |317 |/node_modules/express/lib/router/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'null                |284 |/node_modules/express/lib/router/index.js',
May 06 17:54:18 staging-1.savvi.legal node[28064]:     'process_params      |335 |/node_modules/express/lib/router/index.js'
May 06 17:54:18 staging-1.savvi.legal node[28064]:   ]
May 06 17:54:18 staging-1.savvi.legal node[28064]: }
May 06 17:54:18 staging-1.savvi.legal node[28064]: POST /api/account/resource 500 126 - 27.240 ms
May 06 17:54:41 staging-1.savvi.legal node[28064]: OPTIONS /api/user/accounts 204 0 - 0.242 ms
May 06 17:54:41 staging-1.savvi.legal node[28064]: OPTIONS /api/user/accounts 204 0 - 0.178 ms
May 06 17:54:41 staging-1.savvi.legal node[28064]: GET /api/user/accounts 401 321 - 1.586 ms
May 06 17:54:41 staging-1.savvi.legal node[28064]: GET /api/user/accounts 401 321 - 1.233 ms
SHRoberts91 commented 2 years ago

Fixed on different environments, will push fix through to main on next PR