nextcloud/server · error · Error
Error creating the share
Error message
Error creating the share
What it means
Error "Error creating the share" thrown in nextcloud/server.
Source
Thrown at apps/files_sharing/src/mixins/ShareRequests.js:47
* @param {string} [data.label] custom label
* @param {string} [data.attributes] Share attributes encoded as json
* @param {string} data.note custom note to recipient
* @return {Share} the new share
* @throws {Error}
*/
async createShare({ path, permissions, shareType, shareWith, publicUpload, password, sendPasswordByTalk, expireDate, label, note, attributes }) {
try {
const request = await axios.post(shareUrl, { path, permissions, shareType, shareWith, publicUpload, password, sendPasswordByTalk, expireDate, label, note, attributes })
if (!request?.data?.ocs) {
throw request
}
const share = new Share(request.data.ocs.data)
emit('files_sharing:share:created', { share })
return share
} catch (error) {
const errorMessage = getErrorMessage(error) ?? t('files_sharing', 'Error creating the share')
showError(errorMessage)
throw new Error(errorMessage, { cause: error })
}
},
/**
* Delete a share
*
* @param {number} id share id
* @throws {Error}
*/
async deleteShare(id) {
try {
const request = await axios.delete(shareUrl + `/${id}`)
if (!request?.data?.ocs) {
throw request
}
emit('files_sharing:share:deleted', { id })
return true
} catch (error) {View on GitHub (pinned to ecdeb153ff)
When it happens
Trigger: Thrown at apps/files_sharing/src/mixins/ShareRequests.js:47 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/cd2dbdf8ec896601.
Report an issue: GitHub.