我正在开发一个免费的机器人,得到了那个错误。这是完整的错误
(node:4) UnhandledPromiseRejectionWarning: SyntaxError: The storage file is not properly formatted (Unexpected end of JSON input).
at GiveawaysManager.getAllGiveaways (/app/node_modules/discord-giveaways/src/Manager.js:308:27)
at async GiveawaysManager._init (/app/node_
如何在这里修改图片大小?:
var image = new Image();
image.src = 'http://www.ziiweb.com/images/logo.png';
image.width = 200; //this is not modifying the width of the image
$('canvas').css({
background: 'url(' + image.src + ')'
});
<script src="https://ajax.googleapis.
在Azure中,这个javascript函数定义出现了错误。我在Azure函数中定义这个函数,以供导出函数使用。
async function getData() {
var data = await postRequest();
return data;
};
下面是我在控制台中遇到的错误。Azure函数中不支持异步等待语法吗?
如果是,我将如何实现异步调用(例如,使用节点- REST -客户机进行的rest调用)。
2018-01-05T10:50:55.448 Function started (Id=a4995e6f-141a-46bb-becf-
468f49f750