node_12306
node_12306 copied to clipboard
node main.js error
这个是我的json { "time": "2018-02-06", "from_station": { "name": "南京", "code": "NJH", "pinyin": "nanjing", "suoxie": "nj", "other": "54@njn" }, "end_station": { "name": "西安", "code": "XAY", "pinyin": "xian", "suoxie": "xa", "other": "69@xan" }, "train_num": [ "Z86", "Z40" ], "your_mail": "", "mail_pass": "", "receive_mail": "" }
你想说什么?
您好我这边运行报错
JSON数据出错,请检查输入配置是否正确 SyntaxError: Unexpected end of JSON input
at JSON.parse (
返回的数据不对,你看看你那天是否有这几辆火车的信息?
是有的这两趟车次
修复错误了
还是报我json异常 0.0 { "time": "2018-02-06", "from_station": { "name": "合肥", "code": "HFH", "pinyin": "hefei", "suoxie": "hf", "other": "34@hfx" }, "from_station_": "合肥", "end_station": { "name": "西安", "code": "XAY", "pinyin": "xian", "suoxie": "xa", "other": "69@xan" }, "end_station_": "西安", "train_num": [ "K62" ], "your_mail": "[email protected]", "mail_pass": "", "receive_mail": "[email protected]" } 这是我的json 是哪里不对么我这里吧邮箱换成了qq的 是我哪里操作姿势不断么0.0 var transporter = nodemailer.createTransport({ host: "smtp.qq.com", secureConnection: true, port: 465,//端口,这里端口我看扣扣有两个 auth: { user: config.your_mail,/ pass: config.mail_pass,/ } });
你json报的异常是啥,应该会输出错误信息的
还是这个 JSON数据出错,请检查输入配置是否正确 SyntaxError: Unexpected end of JSON input
at JSON.parse (
我的也是这个错误 @saltedfishboy
找到问题了,日期格式设置成2018-02-02这种就好了
再监听过程中偶尔会有一次这种情况发生,原因不明
目标时间我已经补了0
leftTicket/query
{ Error: unable to verify the first certificate
at TLSSocket.
同,我也是这个错误
这个错误不报之后就报 leftTicket/query /mnt/node_12306/main.js:251 for (var cr = 0; cr < ct.length; cr++) { ^
TypeError: Cannot read property 'length' of undefined
这个错误
随机的
不能用q邮箱吗?输完信息后没有反应