| icon | screwdriver-wrench |
|---|---|
| description | Solutions to common issues with the Spice.ai Cloud Platform. |
- Verify you're using the correct API key for your app. Each app has its own keys — find them in the Portal under your app's settings.
- If you recently regenerated a key, the old key is immediately invalidated. Update all clients to use the new key.
- Ensure the API key is passed correctly:
- HTTP API: Include the
X-API-Keyheader. - Arrow Flight: Pass the key as the
passwordin the handshake. - SDKs: Set the key in the client configuration.
- HTTP API: Include the
Each app has two API keys. To rotate without downtime:
- Regenerate Key 2 (while all clients use Key 1).
- Update all clients to use Key 2.
- Regenerate Key 1.
See API Keys for details.
-
Check identifier casing. Spice normalizes unquoted SQL identifiers to lowercase (PostgreSQL-style). If your source table uses mixed-case names like
MyTable, you must double-quote it in queries:SELECT * FROM "MyTable"
-
Confirm the dataset is configured in your app's Spicepod and the app has been deployed.
-
Ensure the data connector credentials (secrets) are correct and the source is accessible.
- Use data acceleration. Accelerated datasets are cached locally and queries run significantly faster. See Data Acceleration.
- Use
LIMITto reduce result set size during development. - Use Arrow Flight instead of HTTP for large result sets — it has no row-count limits and streams results efficiently.
- Apply
ORDER BYwithLIMIT/OFFSETwhen retrieving large datasets in chunks. See Best Practices.
The HTTP SQL API has row and timeout limits. If you're hitting these:
- Use the Arrow Flight API or an SDK for unlimited streaming results.
- Add
LIMITandOFFSETclauses to paginate results.
- Verify the connection credentials are stored as secrets in your app and referenced correctly in the Spicepod using
${secrets:SECRET_NAME}syntax. - Confirm the data source is network-accessible from Spice.ai Cloud (check firewalls, IP allowlists, VPC peering).
- Check the Data Connectors documentation for connector-specific configuration requirements.
Spice infers the dataset schema at deployment time. If the source schema has changed (columns added, removed, or types changed):
- Redeploy the app to re-infer the schema.
The accelerated table will be re-initialized with the updated schema on redeployment.
When connecting to object stores (S3, ABFS, etc.):
- Folder paths require an explicit
file_formatparameter (e.g.,parquet,csv). - File paths can auto-detect the format from the file extension.
- Confirm a model is configured in your app's Spicepod and the app is deployed.
- Ensure the model provider API key (e.g., OpenAI, Anthropic) is stored as a secret and referenced correctly.
- After adding or changing a secret, redeploy the app — secret changes don't take effect until the next deployment.
- Check the model name matches a supported model from your configured model provider.
- Verify the provider's API is operational (e.g., check OpenAI's status page).
- Review request logs in the Portal Monitoring for error details.
This is by design. Secret values are write-only — they cannot be retrieved after saving for security reasons. To change a secret value:
- Delete the existing secret.
- Create a new secret with the same name and the updated value.
- Redeploy the app.
Secret changes require a new deployment before they take effect. After updating secrets, trigger a new deployment in the Portal.
On the Community Plan, applications that receive no API requests for 7 consecutive days are automatically paused. To restore:
- Go to your app in the Portal.
- Resume the app.
Paid plans do not auto-pause.
If you encounter certificate verification errors when connecting via Arrow Flight:
- Set the
GRPC_DEFAULT_SSL_ROOTS_FILE_PATHenvironment variable to point to your system's CA bundle. - On macOS:
export GRPC_DEFAULT_SSL_ROOTS_FILE_PATH=/etc/ssl/cert.pem - Or use an SDK that handles TLS configuration automatically.
- Search the FAQ for your question.
- Ask in Slack for community support.
- Enterprise plans include priority support with an SLA.