apps/docs/content/troubleshooting/failed-to-retrieve-tables.mdx
First, you can verify if this is isolated to your project or if it's a platform issue by viewing our status page.
If there are no issues, then it's likely a problem with your project.
This error occurs when the Studio (dashboard) is unable to retrieve the tables from the database. Generally, this is because the database is in a crashed state, which usually happens due to an out of memory error. Trying to run a SQL query will often result in a timeout error like this:
connection terminated due to query timeout
Trying to connect to the project via the API will often result in a 522 or 525 response code.
Out of memory errors usually happen because of a sudden spike in database activity, or a sustained high level of activity, either due to a high volume of queries or very complex queries (or a combination of both).
Note that Nano, Micro, Small and Medium compute instances have 30 minutes of burst capacity on a daily basis so may be able to handle sustained high activity for a short period of time, but not sudden spikes.
First:
Once you are confident there will not be a crash loop, you can review the following steps:
If you want to effectively monitor your project's performance minute by minute, you can use the Metrics API.