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

ERROR: Failed to extend syntax #5209

Closed
rfehling-mittwald opened this issue Jan 20, 2023 · 3 comments
Closed

ERROR: Failed to extend syntax #5209

rfehling-mittwald opened this issue Jan 20, 2023 · 3 comments
Labels
in linear Issue or PR has been created in Linear for internal review

Comments

@rfehling-mittwald
Copy link

We updated to the newest n8n version v0.212.0, and our already existing workflows are crashing.

ERROR: Failed to extend syntax

Create a code node with just an empty list and use an expression with "?". This will crash, but did not crash in 0.210.

Easiest Example that exists:

Code Node Once Each Item:

return {
  json: {
    test: [],
  }
}

If Node 💥 :
{{$json["test"]?.length >0}}

If this is not a bug, do we have to to manual type checks like?:
{{$json["test"] !== undefined && $json["test"].length >0}}

We may overused the expression function in the past 😅

@Joffcom Joffcom added the in linear Issue or PR has been created in Linear for internal review label Jan 20, 2023
@Joffcom
Copy link
Member

Joffcom commented Jan 20, 2023

Hey @rfehling-mittwald,

Thanks for reporting this one, We already have this one logged internally and we are tracking it as PAY-105. That example to reproduce is handy as well 🙌🏻

@ivov
Copy link
Contributor

ivov commented Jan 23, 2023

Should be addressed by #5219

@Joffcom Joffcom added the Upcoming Release Will be part of the upcoming release label Jan 23, 2023
@janober
Copy link
Member

janober commented Jan 23, 2023

Fix got released with [email protected]

@janober janober removed the Upcoming Release Will be part of the upcoming release label Jan 23, 2023
@ivov ivov closed this as completed Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in linear Issue or PR has been created in Linear for internal review
Projects
None yet
Development

No branches or pull requests

4 participants