ishanra

Checking bulk transfer status

Jul 20th, 2021
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.72 KB | None | 0 0
  1. info Connected to MongoDB!
  2. info Started listening on port:5000
  3. Finish
  4. (node:31354) UnhandledPromiseRejectionWarning: TypeError: Cannot read p
  5. roperty 'length' of undefined
  6.     at fileUploader (/home/ubuntu/ph-ee-api-sandbox/fileUploader.js:24:
  7. 36)
  8.     at process._tickCallback (internal/process/next_tick.js:68:7)
  9. (node:31354) UnhandledPromiseRejectionWarning: Unhandled promise reject
  10. ion. This error originated either by throwing inside of an async functi
  11. on without a catch block, or by rejecting a promise which was not handl
  12. ed with .catch(). (rejection id: 1)
  13. (node:31354) [DEP0018] DeprecationWarning: Unhandled promise rejections
  14.  are deprecated. In the future, promise rejections that are not handled
  15.  will terminate the Node.js process with a non-zero exit code.
  16. events.js:174
  17.       throw er; // Unhandled 'error' event
  18.       ^
  19.  
  20. TypeError: data.json is not a function
  21.     at /home/ubuntu/ph-ee-api-sandbox/fileUploader.js:21:6
  22.     at process.nextTick (/home/ubuntu/ph-ee-api-sandbox/node_modules/mo
  23. ngoose/lib/model.js:4868:18)
  24.     at process._tickCallback (internal/process/next_tick.js:61:11)
  25. Emitted 'error' event at:
  26.     at process.nextTick (/home/ubuntu/ph-ee-api-sandbox/node_modules/mo
  27. ngoose/lib/model.js:4870:15)
  28.     at process._tickCallback (internal/process/next_tick.js:61:11)
  29. npm ERR! code ELIFECYCLE
  30. npm ERR! errno 1
  31. npm ERR! ph-ee-api-sandbox@1.0.0 start: `node index.js "nodemon"`
  32. npm ERR! Exit status 1
  33. npm ERR!
  34. npm ERR! Failed at the ph-ee-api-sandbox@1.0.0 start script.
  35. npm ERR! This is probably not a problem with npm. There is likely addit
  36. ional logging output above.
  37.  
  38. npm ERR! A complete log of this run can be found in:
  39. npm ERR!     /home/ubuntu/.npm/_logs/2021-07-20T08_07_28_774Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment