nextcloud/server · error · Error

Failed to load tag

Error message

Failed to load tag

What it means

Error "Failed to load tag" thrown in nextcloud/server.

Source

Thrown at apps/systemtags/src/services/api.ts:65

	}
}

/**
 * Fetch a single tag by its ID.
 *
 * @param tagId - The ID of the tag to fetch
 */
export async function fetchTag(tagId: number): Promise<TagWithId> {
	const path = '/systemtags/' + tagId
	try {
		const { data: tag } = await davClient.stat(path, {
			data: fetchTagsPayload,
			details: true,
		}) as ResponseDataDetailed<Required<FileStat>>
		return parseTags([tag])[0]!
	} catch (error) {
		logger.error(t('systemtags', 'Failed to load tag'), { error })
		throw new Error(t('systemtags', 'Failed to load tag'), { cause: error })
	}
}

/**
 * Get the last used tag IDs.
 */
export async function fetchLastUsedTagIds(): Promise<number[]> {
	const url = generateUrl('/apps/systemtags/lastused')
	try {
		const { data: lastUsedTagIds } = await axios.get<string[]>(url)
		return lastUsedTagIds.map(Number)
	} catch (error) {
		logger.error(t('systemtags', 'Failed to load last used tags'), { error })
		throw new Error(t('systemtags', 'Failed to load last used tags'), { cause: error })
	}
}

/**

View on GitHub (pinned to ecdeb153ff)

When it happens

Trigger: Thrown at apps/systemtags/src/services/api.ts:65 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of nextcloud/server@ecdeb153ff (2026-08-17). Data as JSON: /api/errors/46f5182ac68f9da7. Report an issue: GitHub.