REST API Resource Query returns "data" on Mobile but not on Web

Dear Retool Community,

Background of the Issue

We encountered a "weird" situation with our REST API Resource Query in our Retool application.

While the component runs as expected in the Mobile version, the same behavior cannot be observed, in the Web version.

In the Web version, the query does not return any data (data = undefined) and encounters this error:
Error:Could not evaluate transformer: Cannot read properties of undefined (reading 'data')

However, in the Mobile version, the same query (and input data) returns the expected data and is able to perform the next instructions correctly (e.g. onSuccess scripts, etc.):

Other Notes (that might be relevant):

  • We tested and verified that our endpoint works via Postman, and we are able to receive a "Successful" response using the same input data.
  • Other endpoints were also tested and have the same behavior.
  • Our Retool app works as expected via Mobile, but we cannot proceed with further development in the Web version because of the mentioned Error above.
  • We have not made any changes to our app (since 09.10.24), and the only "change" from our latest release versus the current working version is the metadata.json:

Has anyone else experienced this issue with the Resource Queries on both Web and Mobile? If so, how was the issue resolved? Any guidance would be greatly appreciated.

Thank you.

Seems to be similar with the following reports:

According to the other posts (Queries work in the mobile app, but return no results in the editor - #5 by Yannick_TOCQUET), this has been fixed internally by the Retool team.

1 Like

Thanks for updating your post!