nextcloud/server · error · Error

Failed to load last used tags

Error message

Failed to load last used tags

What it means

Error "Failed to load last used tags" thrown in nextcloud/server.

Source

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

		}) 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 })
	}
}

/**
 * Create a tag and return the Id of the newly created tag.
 *
 * @param tag The tag to create
 */
export async function createTag(tag: Tag | ServerTag): Promise<number> {
	const path = '/systemtags'
	const tagToPost = formatTag(tag)
	try {
		const { headers } = await davClient.customRequest(path, {
			method: 'POST',
			data: tagToPost,
		})
		const contentLocation = headers.get('content-location')
		if (contentLocation) {

View on GitHub (pinned to ecdeb153ff)

When it happens

Trigger: Thrown at apps/systemtags/src/services/api.ts:79 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/9a5faaf7bbec36b0. Report an issue: GitHub.