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

[Misc] Fix the error json: unsupported value: encountered a cycle via #3208

Merged
merged 2 commits into from
Apr 8, 2024

Conversation

rokatyy
Copy link
Contributor

@rokatyy rokatyy commented Apr 3, 2024

jira - https://iguazio.atlassian.net/browse/NUC-163

This PR fixes a bug where we see json: unsupported value: encountered a cycle via in the log. The culprit is this line: p.logger.DebugWith("Starting triggers", "triggers", p.triggers). Here, p.triggers is of type []Trigger, where Trigger is an interface. Each trigger in the list is a child of an AbstractTrigger. Each AbstractTrigger maintains a pointer to the original child trigger.So here is a loop. Hence, this log line itself is the reason we encounter this error. The logger was unable to encode the object into JSON.

@rokatyy rokatyy marked this pull request as ready for review April 3, 2024 15:28
@rokatyy rokatyy requested a review from liranbg April 7, 2024 08:23
@liranbg liranbg changed the title Fix the error json: unsupported value: encountered a cycle via [Misc] Fix the error json: unsupported value: encountered a cycle via Apr 8, 2024
@liranbg liranbg merged commit d248c83 into nuclio:development Apr 8, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

None yet

3 participants