posix_fallocate()失败:打开.realm文件时不允许进行操作

时间:2019-09-06 15:44:20

标签: realm serverless

当我尝试在无服务器框架的/ 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==');
            });

0 个答案:

没有答案