troubleshooting.md

Troubleshooting

Authentication & API Keys

API requests return 401 Unauthorized

API key rotation without downtime

Each app has two API keys. To rotate without downtime:

  1. Regenerate Key 2 (while all clients use Key 1).
  2. Update all clients to use Key 2.
  3. Regenerate Key 1.

See API Keys for details.

SQL Queries

Query returns table not found

Query times out or is slow

HTTP SQL API returns truncated results

The HTTP SQL API has row and timeout limits. If you're hitting these:

Data Connectors

Data connector fails to connect

Data refresh fails with schema mismatch

Spice infers the dataset schema at deployment time. If the source schema has changed (columns added, removed, or types changed):

  1. Redeploy the app to re-infer the schema.

The accelerated table will be re-initialized with the updated schema on redeployment.

Object store connector: file_format errors

When connecting to object stores (S3, ABFS, etc.):

AI & Models

AI chat returns errors or empty responses

Model not available or not responding

Secrets

Secret value is not accessible after saving

This is by design. Secret values are write-only — they cannot be retrieved after saving for security reasons. To change a secret value:

  1. Delete the existing secret.
  2. Create a new secret with the same name and the updated value.
  3. Redeploy the app.

Changes to secrets not taking effect

Secret changes require a new deployment before they take effect. After updating secrets, trigger a new deployment in the Portal.

Deployments

App is paused

On the Community Plan, applications that receive no API requests for 7 consecutive days are automatically paused. To restore:

  1. Go to your app in the Portal.
  2. Resume the app.

Paid plans do not auto-pause.

Arrow Flight

TLS/SSL certificate errors on macOS or Windows

If you encounter certificate verification errors when connecting via Arrow Flight:

Still stuck?