I have a S3 query called getAllFiles
which lists all the files in an S3 bucket (1300 objects). I reference that query in a Javascript transformer:
var files = {{ getAllFiles.data }}
This query intermittently returns null. Every time my app runs in Preview mode, the query returns null; however, in Edit mode, the query always successfully returns a list of results, so it's not my query logic.
Some hypotheses:
- Retool has a request timeout for calls to S3, and because it takes too long to return the list of 1300 files, the request times out and returns null as the response
- S3 is throwing null as a response (unlikely, since the query always succeeds when I manually trigger just the S3 query)
- Memory issues upon initial page load?