nextcloud/server · error · Error
Error updating the share
Error message
Error updating the share
What it means
Error "Error updating the share" thrown in nextcloud/server.
Source
Thrown at apps/files_sharing/src/mixins/ShareRequests.js:91
* Update a share
*
* @param {number} id share id
* @param {object} properties key-value object of the properties to update
*/
async updateShare(id, properties) {
try {
const request = await axios.put(shareUrl + `/${id}`, properties)
emit('files_sharing:share:updated', { id })
if (!request?.data?.ocs) {
throw request
} else {
return request.data.ocs.data
}
} catch (error) {
logger.error('Error while updating share', { error })
const errorMessage = getErrorMessage(error) ?? t('files_sharing', 'Error updating the share')
// the error will be shown in apps/files_sharing/src/mixins/SharesMixin.js
throw new Error(errorMessage, { cause: error })
}
},
},
}
/**
* Handle an error response from the server and show a notification with the error message if possible
*
* @param {unknown} error - The received error
* @return {string|undefined} the error message if it could be extracted from the response, otherwise undefined
*/
function getErrorMessage(error) {
if (isAxiosError(error) && error.response.data?.ocs) {
/** @type {import('@nextcloud/typings/ocs').OCSResponse} */
const response = error.response.data
if (response.ocs.meta?.message) {
return response.ocs.meta.message
}View on GitHub (pinned to ecdeb153ff)
When it happens
Trigger: Thrown at apps/files_sharing/src/mixins/ShareRequests.js:91 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/0076bf2a6ba805c1.
Report an issue: GitHub.