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

chiaAgent Dies Trying to Log SSL Error #21

Open
stonemelody opened this issue Nov 21, 2021 · 0 comments
Open

chiaAgent Dies Trying to Log SSL Error #21

stonemelody opened this issue Nov 21, 2021 · 0 comments

Comments

@stonemelody
Copy link

When attempting to send an RPC to a remote machine, the system will die trying to log a TLS verification error (bug for TLS error in #20), showing:

TypeError: Converting circular structure to JSON
    --> starting at object with constructor 'Object'
    --- property 'issuerCertificate' closes the circle
    at JSON.stringify (<anonymous>)
    at ClientRequest.<anonymous> (/Monitor_Project/ChiaMonitorApi/node_modules/chia-agent/rpc/index.js:228:53)
    at ClientRequest.emit (node:events:390:28)
    at TLSSocket.socketErrorListener (node:_http_client:447:9)
    at TLSSocket.emit (node:events:390:28)
    at emitErrorNT (node:internal/streams/destroy:164:8)
    at emitErrorCloseNT (node:internal/streams/destroy:129:3)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)

In this case, printing just the error itself is sufficient to see the real TLS error that was supposed to be printed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant