I have an app to import a CSV file and run multiple queries to import things to MongoDB for each row. In this particular test CSV file there are ~70 rows, and it pretty consistently fails to make it through all of them (in the error below it made it to ~30 before failing). So, I know this query works, because it did it 30 times without issue. It's not critical issue, because I built the app to skip rows already imported if it failed previously—so I can eventually get the whole sheet imported fine. It's just annoying, because I'm uncertain what the issue is.
The Mongo database is currently on an M0 cluster while in dev, so it seems that I can't download logs. I'm not sure if there is another way to access them, but I'll research it a bit.
I have noticed a few sporadic failures of other single queries today, but I haven't been doing much other than working on this import function.
@benbarry thanks for that additional context! Taking a look at this with some other members of the team, will report back if we find a solution or need any more info.
The team has done some more investigation into this and has potential targets for implementing a fix. However, due to the upcoming holiday code freeze, they won't be implemented until the start of the new year.
If you find this behavior to be urgently blocking and need a fix before then let me know and I can try to look into other solutions with you
@Kabirdas thanks for the update. I've implemented a way to restart my script if it fails and continue from where it was at before failing. It's a bit annoying, but getting the job done, so not urgently blocking. Have a good holiday!
Hey @benbarry! Just want to circle back here to report that we've made some changes to help reduce occurrences of this error. Can you let me know if it's still popping up for you?
Excellent. I was able to muddle through everything I needed to import at the time, but there will be more in the future. However, I'll try and run a test batch in the next day or two and follow up about how it goes.
Hey! Thanks for reporting back @benbarry! I'm doing some digging on our end on this and will update here as I find more information or have more questions.
In response to your question @dzear, it's possible to add event handlers to run in if your query fails. You can add a debounce to the trigger so that it only retries every X milliseconds:
Thanks @Kabirdas! It would be awesome if Retool could add retry query under the query's advanced options so we didn't have to do all this boilerplate on all of our queries