RocketChat/Rocket.Chat · error · Meteor.Error

Custom_Sound_Error_Invalid_Sound

Custom_Sound_Error_Invalid_Sound

Error message

Invalid sound

What it means

Error "Invalid sound" thrown in RocketChat/Rocket.Chat.

Source

Thrown at apps/meteor/server/lib/media/custom-sounds/lib/deleteCustomSound.ts:11

import { api } from '@rocket.chat/core-services';
import { CustomSounds } from '@rocket.chat/models';
import { Meteor } from 'meteor/meteor';

import { RocketChatFileCustomSoundsInstance } from '../startup/custom-sounds';

export const deleteCustomSound = async (_id: string): Promise<void> => {
	const sound = await CustomSounds.findOneById(_id);

	if (!sound) {
		throw new Meteor.Error('Custom_Sound_Error_Invalid_Sound', 'Invalid sound', {
			method: 'deleteCustomSound',
		});
	}

	await RocketChatFileCustomSoundsInstance.deleteFile(`${sound._id}.${sound.extension}`);
	await CustomSounds.removeById(_id);

	void api.broadcast('notify.deleteCustomSound', { soundData: sound });
};

View on GitHub (pinned to b2c16d5842)

Solutions

  1. Pass the _id of an existing custom sound to deleteCustomSound; the sound was not found in the CustomSounds collection.
  2. Refresh the custom sound list and retry deletion with a valid sound id.

When it happens

Trigger: Thrown at apps/meteor/server/lib/media/custom-sounds/lib/deleteCustomSound.ts:11 when the library encounters an invalid state.

Common situations: See trigger scenarios.


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