RocketChat/Rocket.Chat · info
Not found
Error message
Not found
What it means
Deliberate stub: any request under /file-decrypt/ is answered with 404 'Not found'. The old server-side file decryption download path was removed (decryption now happens in the client); the route exists only to terminate the legacy path explicitly instead of letting it fall through to other handlers.
Source
Thrown at apps/meteor/server/routes/fileDecrypt.ts:5
import { WebApp } from 'meteor/webapp';
WebApp.connectHandlers.use('/file-decrypt/', (_, res) => {
// returns 404
res.writeHead(404);
res.end('Not found');
});
View on GitHub (pinned to b2c16d5842)
Solutions
- Stop calling /file-decrypt/ - fetch files through /file-upload/<id>/<name> and decrypt in the client as current builds do
- Purge cached links and bookmarks pointing at the endpoint
- Update integrations to the current file download URL scheme
Example fix
// before
window.location.href = `${root}/file-decrypt/${fileId}`;
// after
window.location.href = `${root}/file-upload/${fileId}/${fileName}`; Defensive patterns
Strategy: fallback
Validate before calling
const isLiveFileRoute = (url: string): boolean => !url.startsWith('/file-decrypt/'); Prevention
- Do not hardcode removed endpoints; derive file URLs from current message attachment data
- After upgrades, grep clients and integrations for legacy paths like /file-decrypt/
- Follow the changelog for file upload API changes
When it happens
Trigger: Any method and path under /file-decrypt/... - old clients, cached links, or integrations still calling the pre-removal endpoint after a workspace upgrade.
Common situations: Upgraded workspaces where a stale client, bookmark, or app still points at /file-decrypt/; documentation or integrations written against the old file decryption API.
Related errors
- The environmental variable "${envVarName}" is not readable.
- auth option should be of the form "username:password"
- Transfer to entity with id ${transferData.to} not found
- The command is not currently disabled: "${cmd}"
- Command does not exist in the system currently: "${cmd}"
AI-assisted analysis of RocketChat/Rocket.Chat@b2c16d5842 (2026-08-18).
Data as JSON: /api/errors/87ec0249c2a5cbe4.
Report an issue: GitHub.