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

BUG - Error parsing record values #237

Open
leoraba opened this issue Nov 12, 2024 · 1 comment
Open

BUG - Error parsing record values #237

leoraba opened this issue Nov 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@leoraba
Copy link
Contributor

leoraba commented Nov 12, 2024

Description

Using parse.parseRecordValues(record: UnprocessedDataRecord, schema: Schema) function to parse record values.
Resulting in an error being thrown:

RangeError: Maximum call stack size exceeded

Expected Behaviour

An object with properties and value types parsed according the schema passed as argument.

Actual Behaviour

Error thrown:

RangeError: Maximum call stack size exceeded

Your Environment

  • Package name: @overture-stack/lectern-client
  • Version used: 2.0.0-beta.2
  • Environment: Node.js v20.12.2
  • Operating System: Mac M1
@leoraba leoraba added the bug Something isn't working label Nov 12, 2024
@leoraba
Copy link
Contributor Author

leoraba commented Nov 12, 2024

Solution: Correct the error related to a nested if condition, which was causing an infinite loop and leading to an out-of-memory issue.
PR #236

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant