Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some times the app crashes trying to log a circular structure to JSON #1129

Open
thesocialdev opened this issue Mar 25, 2024 · 0 comments
Open
Labels
bug Something isn't working tech tech-debt

Comments

@thesocialdev
Copy link
Collaborator

The error was never found in the happy path. However, during my tests running Ory locally, these are found during registration errors.

[Node] {"name":"service-aletheia","hostname":"msantoss-MBP.homenet.telecomitalia.it
","pid":35364,"level":"INFO","levelPath":"info","msg":"GET / 200 undefined - Mozill
a/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Ch
rome/123.0.0.0 Safari/537.36 ::1","time":"2024-03-25T11:09:16.130Z","v":0}
[Node] error - uncaughtException: TypeError: Converting circular structure to JSON
[Node]     --> starting at object with constructor 'ClientRequest'
[Node]     |     property 'socket' -> object with constructor 'TLSSocket'
[Node]     --- property '_httpMessage' closes the circle
[Node]     at JSON.stringify (<anonymous>)
[Node]     at NamedLevelStdout._write (/Users/msantos/workspace/aletheia_fact/aleth
eia/node_modules/service-runner/lib/logger.js:24:18)
[Node]     at writeOrBuffer (node:internal/streams/writable:392:12)
[Node]     at _write (node:internal/streams/writable:333:10)
[Node]     at Writable.write (node:internal/streams/writable:337:10)
[Node]     at Logger._emit (/Users/msantos/workspace/aletheia_fact/aletheia/node_mo
dules/bunyan/lib/bunyan.js:923:22)
[Node]     at Logger.fatal (/Users/msantos/workspace/aletheia_fact/aletheia/node_mo
dules/bunyan/lib/bunyan.js:1045:24)
[Node]     at Logger._log (/Users/msantos/workspace/aletheia_fact/aletheia/node_mod
ules/service-runner/lib/logger.js:331:26)
[Node]     at Logger.log (/Users/msantos/workspace/aletheia_fact/aletheia/node_modu
les/service-runner/lib/logger.js:365:18)
[Node]     at BaseService._unhandledRejectionHandler (/Users/msantos/workspace/alet
heia_fact/aletheia/node_modules/service-runner/lib/base_service.js:57:30)
[Node]     at process.emit (node:events:525:35)
[Node]     at process.emit (node:domain:489:12)
[Node]     at emit (node:internal/process/promises:149:20)
[Node]     at processPromiseRejections (node:internal/process/promises:283:27)
[Node]     at process.processTicksAndRejections (node:internal/process/task_queues:
96:32)
[Node] [nodemon] app crashed - waiting for file changes before starting...

@thesocialdev thesocialdev added bug Something isn't working tech-debt tech labels Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tech tech-debt
Projects
None yet
Development

No branches or pull requests

1 participant