-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
MongoDB request fails in v3.3.1 - worked fine before #15449
Comments
Hey @esellier, I've tried to recreate this. I'm able to do this Are you using Docker Compose or Docker Single Image? If you let me know which one you are using, I'll try to recreate it on those as well. |
I tried on my own Macbook, with a new clone of the git repo and running in Docker (npm run dev:docker), it works fine. |
The problem is in query.ts:155, when executing the transformer in VM. |
Hi @esellier - I've been trying to replicate this - but the only way I've been able to get the error is with invalid JS. In your example I've tried quite a few different examples in 3.3.3 and have not been able to recreate with any valid transformer - below is your example from Discord. |
Extracted from /tmp/.budibase/systemlogs/budibase.log |
Issue found... It's strange. I can't say however why the classname disappears in the minified version. On my Macbook, the query.js script is not minified and the class name is OK... and that's why it was running fine. |
Optional chaining is available in NodeJS, since version 14.
|
Checklist
Hosting
Describe the bug
A mongo DB request fails with a response :
{"message":"Unexpected token '{' [:1:6]","status":400}
The query works fine if I remove the Transformer. Anything else than the default "return Data;" transformer will fail.
To Reproduce
Steps to reproduce the behavior:
Create query, add a custom transformer => Fails
Remove transformer => OK
The text was updated successfully, but these errors were encountered: