nodejs 服务端使用cos服务的问题
发布于 6 年前 作者 leiqiu 13713 次浏览 来自 问答

一上传文件就提示以下警告,而使得后续的信道服务停止

warning: AppId has been deprecated, Please put it at the end of parameter Bucket(E.g: “test-1250000000”).

(node:9743) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

是在哪里加参数?还有cos在生产环境应该是怎么申请使用?

2 回复

我也遇到过这个问题,把config里的appid给去掉就可以了

我和你一样的问题,上传照片上周代码测试都没问题,这两天就不行了。服务器端提示,更为奇怪的是,wx.uploadfile, 居然进入success, 返回是 code:-1.

(node:29224) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

(node:29224) [DEP0013] DeprecationWarning: Calling an asynchronous function without callback is deprecated.

fs.js:113

      throw err;  // Forgot a callback but don’t know where? Use NODE_DEBUG=fs

      ^

Error: ENOENT: no such file or directory, unlink ‘/tmp/3bHZYO92WxricH2NYn21x5gy.png’

回到顶部