我正在尝试构建一个Firebase云函数,为用户生成一个仪器部件。云函数应该在应用中调用,生成部件,然后将生成的部件返回给应用进行记录。下面是我的App函数: //Allow the user to select an instrument//once the user has seleced there instru
我正在尝试使用来自firebase云函数的http触发器将响应发送回客户端。当我使用云存储中的文件位置发送响应时,sendFile方法抛出了这个错误: "path must be absolute or specify root to res.sendFile"
exports.fun = functions.https.o