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

Quick and dirty hack to avoid max call stack size limits #256

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

confused-Techie
Copy link
Member

Requirements

  • Filling out the template is required.

  • All new code requires tests to ensure against regressions.

    • However, if your PR contains zero code changes, feel free to select the checkmark below to indicate so.
  • Have you ran tests against this code?

  • This PR contains zero code changes.

Description of the Change

While this likely isn't the best solution, it's the best I could determine on a short notice to remove this error from production.

The error stems from the fact that it seems superagent in it's error returns uses many references to other objects in it's error, which seems to create some situations where an object will have an infinite depth if following all the references that reference parent objects and such.

This quick and dirty method of avoiding reaching any call stack limits just limits the maximum depth we sanitize to 15 levels. While not perfect should work for our use cases.

Fixes #252

@confused-Techie confused-Techie merged commit fcad58f into main Jun 28, 2024
6 checks passed
@confused-Techie confused-Techie deleted the no-max-call-stack branch June 28, 2024 03:58
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.

[BUG] Maximum Call stack size exceeded
1 participant