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]: Query execution error: null. #1528

Open
1 task done
joincamp opened this issue Feb 12, 2025 · 0 comments
Open
1 task done

[Bug]: Query execution error: null. #1528

joincamp opened this issue Feb 12, 2025 · 0 comments
Assignees
Labels
Javascript Frontend Pull requests that update Javascript code

Comments

@joincamp
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

From the user perspective, certain basic data queries don't work, and it is confusing as to why. The only user feedback is Query execution error: null.

Diving further in, I can provide further insight and a few things that might need to change. Essentially, the core of the issue is that with the introduction of variables, it encodes all listed variables, including the initial stub variable that hasn't been used.

{
    "path": [],
    "params": [
        {
            "key": "query1.variables.undefined"
        },
        {
            "key": "query1.variables.$queryName",
            "value": "query1"
        }
    ],
    "viewMode": false,
    "applicationId": "...",
    "queryId": "..."
}

This does not show on all data sources, likely because their mappings are hardened against the problem, but I've noticed the error so far on AWS S3 and DynamoDB data sources.

So, these datasources should probably all be able to handle bad user input gracefully (like the REST one does), as well as the UI not trying to encode the placeholder variable.

Expected Behavior

I would expect the UI to only encode "real" variables, and not the placeholder that is there for UX.

The data queries should additionally be able to handle some level of expected input (some work, some don't , which leads to confusion).

Additionally, the logs and stacktrace that come from the error (sorry, I don't have access to the server at the moment) are not very helpful. A user-facing error I understand you may not want to leak details, but I was not able to figure this out without debugging.

Steps to reproduce

  • Create a S3 data source.
  • Create an app
  • create an s3 data query
  • configure it with just the bare minimum, such as read all buckets
  • run manually, observe error
  • configure a button or something to trigger the query and bind the event
  • click the button, observe error
Image

Environment

v2.6.3 running on amazonlinux:2023 docker container

Additional Information

No response

@joincamp joincamp changed the title [Bug]: <title> [Bug]: Query execution error: null. Feb 12, 2025
@FalkWolsky FalkWolsky added the Javascript Frontend Pull requests that update Javascript code label Feb 13, 2025
@FalkWolsky FalkWolsky moved this to 🆕 New in Lowcoder Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Javascript Frontend Pull requests that update Javascript code
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants