Firestore queries with "Raw Mode" return: The code terminated for an unknown reason. Potentially, the memory limit 256 Mibs was breached

We are using firestore and we have our retool pages for couple of months. Today we started getting The code terminated for an unknown reason. Potentially, the memory limit 256 Mibs was breached. for our firestore queries, and the error is not consistent. Im running one particular firestore query, and it returns this error 9 of the 10 runs, so in some cases it returns the requested value.

Today google cloud functions made node-18 deprecated and requests node-20, I dont know if thats related, and if retool needs to update their firebase-admin SDK accordingly.

EDIT: We have noticed this issue only occurs in the firestore queries with Raw mode. Other firestore queries with GUI mode works just fine. I'm thinking this about the memory allocation for the functions with "raw mode" firestore queries. We didnt change anything in these queries for a long time, and firestore works fine when GUI mode is used. So certainly retool changed something in the back, and a fix is needed urgently

Here is the query working (1 in 10 times):

Here is the error we get often, starting this morning (at least we noticed this issue couple of hours ago):

3 Likes

@Sparkspark I'm experiencing the exact same thing. All Firebase raw queries are failing with this error.
"The code terminated for an unknown reason. Potentially, the memory limit 256 Mibs was breached."
It has brought my whole team to a grinding halt. Retool team please look into this ASAP!

2 Likes

Experiencing the same issue here!

3 Likes

Facing the same issue. Really affecting operations

1 Like

Queries started to work again, Retools engineer team probably fixed it in the back though we didnt get any response from the Retool team.

2 Likes