If you encounter this error, it likely means the RelationalAI application is currently deactivated. This error is thrown because the internal engine has been shut down as part of the deactivation process, so API calls or queries cannot communicate with a shutdown engine.
JavaScript execution error: Uncaught Error: Failed to check if database exists: Uncaught exception of type 'STATEMENT_ERROR' on line 59 at position 8 : JavaScript execution error: Uncaught Error: Failed to communicate with RelationalAI service Error: Service SPCS_CONTROL_PLANE not reachable: service suspended. in EXCEPTION at ' throw new Error(`\n${MESSAGE}\n\n`);' position 4 stackstrace:
To confirm this is the case, you can use the following SQL statement to check the status of the RelationalAI service. If it says deactivated, you have confirmed the issue is due to the RelationalAI application being deactivated.
CALL relationalai.app.service_status();
You can use the activate() call to activate the RelationalAI application. This process is expected to take a few minutes to complete activation.
CALL relationalai.app.activate();
Resources
https://relational.ai/docs/reference/sql/activate
https://relational.ai/docs/reference/sql/deactivate
https://relational.ai/docs/reference/sql/service_status/#service_status