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

  1. Stop calling /file-decrypt/ - fetch files through /file-upload/<id>/<name> and decrypt in the client as current builds do
  2. Purge cached links and bookmarks pointing at the endpoint
  3. 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

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


AI-assisted analysis of RocketChat/Rocket.Chat@b2c16d5842 (2026-08-18). Data as JSON: /api/errors/87ec0249c2a5cbe4. Report an issue: GitHub.