I keep getting App did not load successfully when I try to add a table from the cloud database (postgres).
There are no issues found, but the app preview returns this error.
I am able to preview data for the table I added from the cloud database.
What am I doing wrong?
There was a “__:parseerror“ in the error message.
added context: the table I wanted to add have 500,000+ records which might be related because when I added a different table with low number of records from the same cloud data source, the app did not throw the same error.
I did some research and found out that there are some prerequisites that will allow you to enable this connection:
Your Postgres instance must be publicly hosted in the cloud (e.g., Google Cloud SQL, Amazon RDS).
Your network and the Postgres database must accept inbound connections from AppSheet’s servers. You may need to configure firewall rules or security groups to whitelist AppSheet’s IP addresses.
You will need the following database credentials: Server (hostname/IP address), Database name, Username, and Password.
How to connect the PostgreSQL Database as a Data Source
Sign in to AppSheet and navigate to the “My Account” page.
Go to the Sources tab and click + New Data Source.
Enter a name for the data source and select Cloud Database.
In the connection dialog:
For Type, select Postgres.
Enter the Server (hostname or IP address), Database name, Username, and Password.
Configure SSL settings as required by your database provider.
Click Test to verify the connection details. After a successful test, click Authorize Access to save the data source in your AppSheet account.
Hello, I’m not sure if this is the exact fix to this problem but I consulted with support and I just did some security filters to the cloud database table so that the user will only see a fraction of the records (based on their useremail) and the app ran well.