我正在尝试调用 formStart 函数。我不断收到错误“解析 JSON 时出错:SyntaxError:JSON 输入意外结束”。知道为什么吗?我正在使用优先级 github 上的基本示例代码。下面是函数调用代码:
var priority = require('priority-web-sdk');
var configuration = {
username: 'myusername',
password: 'password',
url: 'https://priority.my.server/',
tabulaini: 'tabula.ini',
language: 3,
company: 'companyname'
};
priority.login(configuration)
.then(()=> priority.formStart('CUSTOMERS', null, null, 'company', 1))
.then(form=> form.getRows(1))
.then(rows=> console.log(rows))
.catch(err=> console.log(err));