Query library doesn't register variables

  • Goal: I am trying to build a new query with the query library and test it by hardcoding variables values using the 'Variables' right side panel.

  • Steps: Create a new query in staging mode, add variables, update their values in the right-side panel

  • Details: The variable values that I add to the right-side panel are not registered when the query is executed.

Hello @brady

I noticed an issue where you need to manually input values when using that library within the app.

1 Like

Hi @brady, two questions:

  1. Are we con Cloud or Self-hosted Retool? If Self-hosted, what version?
  2. What happens when we click the 'play' button to run the query?

I'm unable to reproduce this bug but we've seen linting issues in the past. I wonder if this is one of them.

1 Like

Hey Paulo, thanks for following up!

I am on the cloud version.

When I hit play while in staging, it runs the query but none of the variable values are included in the request, they are all empty. Even the 'name' variable which in this case is green and seems to be linted correctly, does not appear in the request.

1 Like

You are welcome!

That is odd, could you duplicate this query and hard code some values? Let's make sure the endpoint is working as expected first.

I just tested and the request succeeds once I hardcode valid values.

Thank you! I was able to repro and found an existing internal bug report for this. I added your experience to the report and will update you here when it's fixed.