-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
fix(core): update ensureUserExists
method: avoid possible TypeError: Converting circular structure to JSON
occurred by doing JSON.stringify
for charactor.plugins
#3235
Conversation
…r: Converting circular structure to JSON` occurred in do `JSON.stringify` for charactor.plugins - you don't need to save all plugins object, names are enough.
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
- Add null check for character details during user creation - Prevent potential errors when character is undefined - Simplify knowledge formatting text cleanup
Fixed |
Refer |
Relates to
N/A
Risks
Medium, it is a
core
method update.Background
What does this PR do?
When invoke
ensureUserExists
and savingaccount.details
, performing a complete JSON.stringify oncharacter
will cause aTypeError: Converting circular structure to JSON
error in some more complex plugins.What kind of change is this?
Bug fixes (non-breaking change which fixes an issue)
Why are we doing this? Any context or related work?
Bug fix, and we don't need to save all plugins objects. I think plugins' names are enough.
Documentation changes needed?
My changes do not require a change to the project documentation.
Discord username
bt.wood