Automatic crash on Angular universal project on server

Published

In the Angular universal project. After a while on the server, the site automatically crashes and the server needs to be restarted.

These errors are in the log.

This has happened twice in the last month.

There are too many "Converting circular structure to JSON" errors in the log file.

(node:24572) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

ERROR TypeError: Converting circular structure to JSON
--> starting at object with constructor 'XMLHttpRequest'
|     property 'upload' -> object with constructor 'XMLHttpRequestUpload'
--- property '_request' closes the circle
at JSON.stringify (<anonymous>)
at readableObjectToString (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1495120)
at resolvePromise (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1498869)
at resolvePromise (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1497774)
at D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1500424
at ZoneDelegate.invokeTask (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1489452)
at Object.onInvokeTask (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1984912)
at ZoneDelegate.invokeTask (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1489342)
at Zone.runTask (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1482017)
at drainMicroTaskQueue (D:Inetpubvhostsipdemy.irhttpdocsmain.js:1:1493060) {
rejection: HttpErrorResponse {
headers: HttpHeaders {
  normalizedNames: Map(0) {},
  lazyUpdate: null,
  headers: Map(0) {}
},
status: 0,
statusText: 'Unknown Error',
url: 'https://www.systemapi.ipdemy.ir/api/global/Bootstrapper',
ok: false,
name: 'HttpErrorResponse',
message: 'Http failure response for https://www.systemapi.ipdemy.ir/api/global/Bootstrapper: 0 Unknown Error',
error: ProgressEvent {
  type: 'error',
  target: [XMLHttpRequest],
  currentTarget: [XMLHttpRequest],
  lengthComputable: false,
  loaded: 0,
  total: 0
}
},

Source: Angular Questions

Answers

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq