Any clues what can cause this error message? Might it be permissions on the MD?
I’m assuming the MD handle is fine because safeNfs.create() succeeds immediately prior - code (error is on the safeNfs.insert()
call:
// Create file
//
// @returns promise which resolves to a Resonse object
async _createFile (fullPath, body, contentType, options) {
safeWebLog('%s._createFile(\'%s\',%O,%o,%O)', this.constructor.name, fullPath, body, contentType, options)
try {
let fileHandle = await window.safeNfs.create(await this.storageNfs(), body)
fileHandle = await window.safeNfs.insert(await this.storageNfs(), fileHandle, fullPath)
this._updateFileInfo(fileHandle, fullPath)
return new Response()
} catch (err) {
safeWebLog('Unable to create file \'%s\' : %s', fullPath, err)
return new Response(null, {}, {status: 500, responseText: '500 Internal Server Error (' + err + ')'})
}