Hello! I have a Slack app hooked up to Glitch. Glitch handles all the app’s db inputs and requests for data initiated from Slack via JSON db. The inputs and outputs are JSON objects. For example, they have titles, dates, and descriptions.
Recently, my team and I noticed weird behavior. When a user submits info, it’s not immediately available for retrieval. Checking the JSON db file on Glitch also doesn’t show the new data. But on the Slack side via the modals that are capable of requesting data, we can see parts of the JSON object that were sent over to Glitch e.g. the title. But interacting with it isn’t possible.
On Glitch however, we realized that entering “refresh” in the terminal synced up the editor with the terminal. After doing this, the JSON db file populates and on the Slack side, the JSON object is accessible (this is expected behavior). If we don’t do this, the update happens eventually on its own. It can happen anywhere between 30 minutes - 24 hours.
Since this is an app that should work in real-time, manually refreshing is unreasonable. Implementing a patch that submits a “refresh” to the terminal on some interval also doesn’t feel right.
For context, this project is boosted on Glitch. Has anyone encountered something similar?