-
Goal: Retool should be able to query the azure SQL resource immediately
-
Steps: It happens occasionally but somewhat consistently when the app hasn't been in use for a few hours: every query fails with a flurry of error messages when I first open it up in retool. If I immediately refresh the browser, it works fine. It's like the connection goes to sleep or something, or the cached data expires and retool doesn't go grab it again fast enough.
-
Details: I'm embarrassed that I haven't grabbed the actual error messages, but will grab next time it happens. It's to the effect of a connection error, that the queries fail. Oddly, nothing shows up about it in the Retool logs that I can see, though it happened this morning at 0838 CDT or so. And nothing shows up in the SQL Server logs either (using "SELECT * FROM sys.event_log ") returns no errors. In both I can see the activity at that time, but neither catches the error in any way that I can discern.
It is perhaps notable that I have never seen it happen during a working session. It seems to always happen after the app has been idle a while. And it did not happen, to my recollection, when I was using the Retool db. So I'm assuming it's something in the connection between retool and SQL.
I did try adding a "Connection Policy" as "Redirect" but that didn't seem to do anything.