DocsReference
Errors and troubleshooting
Responses your users can get from Snapwake
These come from Snapwake, not from your app. The body is a one-line message.
| Status | Message | What it means | What to do |
|---|---|---|---|
404 |
no app here: apps live at https://<app>.snapwake.app/ |
the host name isn't an app address | check the URL |
404 |
no app named <app> |
no such app, or it was deleted | check the name; snapwake apps |
402 |
<app> is paused: its account reached its limit for this month |
your organization has used its monthly usage | see When you run out |
403 |
<app> is suspended |
the organization is suspended | write to support |
503 |
<app>: its new version is still being prepared |
the first version of a new app is starting | retry in a couple of seconds (Retry-After: 2) |
503 |
<app> is restarting after a failure (...); next try in N s |
the app crashed, failed health checks or failed to wake | look at snapwake logs; see Health checks |
503 |
<app> is broken: 5 failures in a row, ... |
five failures in a row; retried every 5 minutes | fix and deploy, or roll back |
503 |
<app>: not enough free memory on this node ..., too many wakes queued on this node ..., this node has no memory free for it right now |
the server is busy waking other apps | retry (Retry-After: 2); tell us if it persists |
502 |
could not wake <app>: ... |
the VM didn't come back from its snapshot | retry; if it repeats, redeploy and tell us |
502 |
<app>: app is not answering: ... |
the server couldn't reach the VM's init | retry; tell us if it repeats |
502 |
... is down and there is no replica here, ... are both down, ... went down during the request, ... dropped the request |
a server failed while handling the request | retry; for non-GET requests, check whether the first attempt took effect |
504 |
the app did not answer in time |
the app took more than 100 seconds to start its response | answer sooner; move long work to a worker |
431 |
headers too large |
request headers over 32 KB | send smaller headers or cookies |
An empty reply (the connection closes without a response) means nothing accepted the connection on the app's port inside the VM: the app isn't listening yet, it listens on another port, or its process has exited. It also happens when the app went to sleep while a stream was silent. See When your process exits.
Deploy problems
don't know this app: no package.json, requirements.txt, pyproject.toml or server.py. Snapwake didn't recognize the folder. Add a Dockerfile, or check you deployed the right folder.
node app without a start script, a Procfile, or server.js / index.js. Add a start script to package.json, or pass --start "node dist/main.js".
fastapi app: no app = FastAPI(...) in main.py / app.py / api.py / server.py (or the same for Flask). Snapwake looks for that line in those files. Move the app object there, or pass --start "uvicorn mypkg.web:app --host 127.0.0.1 --port 3000".
the image has neither ENTRYPOINT nor CMD; give --start. The image doesn't say how to start it. Pass --start.
the image has its own /flare, which flare needs. Snapwake puts its init and runtime helpers in /flare inside the image. An image with its own /flare can't run yet; move that folder in your image.
The image has no linux/amd64 platform. Build and push an amd64 (or multi-platform) image.
The version failed and the note says the app didn't listen. The app must listen on its port: PORT (3000) for framework builds, the image's port otherwise (Which port). Listening on localhost only is fine. Check snapwake logs for a crash during start.
402 on deploy or scale. The change doesn't fit your plan; the message names the limit (number of apps, memory per VM, VMs per app, volume size, always-on). See Plans.
not through the API (yet): ... or a refused snapwake.toml key. That option isn't available during the beta; see Not available through the CLI yet.
The CLI can't reach the API, or says to log in. Run snapwake login again. In CI, check FLARE_API and FLARE_TOKEN.
Runtime problems
A secret change doesn't show up. Environment variables are read when the app starts: run snapwake redeploy <app>. See Secrets.
Data disappears after a while. The app went to sleep, and apps without volumes wake from their deploy snapshot. Keep data in a database or on a volume.
The first request after a pause is slow, or hangs on the database. The app is reconnecting after a wake. Most drivers do this quickly; if yours hangs on dead connections, reconnect in a wake hook, and consider the Postgres pool.
Every wake produces the same "random" values. Your runtime seeds a generator once at start. See Randomness inside your runtime.
A server-sent events stream drops after about 10 seconds of silence. Send a heartbeat every few seconds (Sleep and wake).
Work started after the response never finishes. The app went to sleep. Do the work before responding, or hand it to a worker.
WebSocket connections fail. Not supported through the public URL yet.
The app is broken. Read snapwake status <app> for the last failure and snapwake logs <app> for what the app printed. A deploy, a rollback or a change to the health check makes Snapwake try again at once.
Still stuck
Write to support@snapwake.dev with the app's name, what you did, and what you saw.