当我尝试在无服务器框架的/ tmp目录中打开并下载.realm文件时,出现以下错误。 {“ errorType”:“ Runtime.UnhandledPromiseRejection”,“ errorMessage”:“错误:posix_fallocate()失败:不允许操作”}
Below is the code:
let realm = new Realm({path: '/tmp/custom.realm', schema: [schema1, schema2]});
realm.write(() => {
console.log('completed==');
});