Hi, we are getting the following error on regular signup using username & password flow.
We are using the Username-Password-Authentication
connection.
Error: {"message":"Converting circular structure to JSON\n --> starting at object with constructor 'Object'\n --- property 'issuerCertificate' closes the circle","name":"SandboxUnhandledError","statusCode":500,"fromSandbox":true}
we haven’t changed our implementation since last few weeks. it was working till Dec 13th 2024. Since last of couple days signup has started failing.
Help us resolve this issue.
Thanks.
1 Like
Hi @manish.gowardipe,
Welcome to the Auth0 Community!
I understand that you are receiving “Error: {“message”:“Converting circular structure to JSON\n → starting at object with constructor ‘Object’\n — property ‘issuerCertificate’ closes the circle”,“name”:“SandboxUnhandledError”,“statusCode”:500,“fromSandbox”:true}” errors in your Username-Password-Authentication
connection.
I looked into this error. It occurs when attempting to stringify an object with circular references using JSON.stringify()
. JSON format does not support circular structures, so this error indicates that the serialization process cannot handle the circular references within the object being converted to JSON. Can you take a look at where in your Username-Password-Authentication
connection scripts you are using JSON.stringify()
? I would recommend using the Real-time Webtask Logs Extension to debug your database scripts.
Here’s a stack overflow post with a few solutions regarding this error: typescript - TypeError: Converting circular structure to JSON --> starting at object with constructor 'ClientRequest' - Stack Overflow
Best,
Mary Beth
Hi @marybeth.hunter,
Thank you for your response and the suggestion.
We have tried multiple solutions, including disabling Actions and reviewing my scripts, but unfortunately, the issue persists. The sign-up process is working fine in a different tenant, so it seems to be isolated to this specific one.
I’ve also made sure to carefully check for any instances where JSON.stringify()
is being used in the Username-Password-Authentication connection scripts, but I didn’t find anything that would explain the circular reference issue.
Could you please guide me further on how to proceed with debugging this, or if there’s anything else specific to this tenant configuration that could be causing this problem?
Looking forward to your guidance.