报错是这样的,相信有很多人都遇到过
TypeError: Cannot read property 'length' of null at OpenfalconDatasource.translateTime (http://181.101.141.201:3000/public/plugins/fastweb-openfalcon-datasource/datasource.js:151:45) at OpenfalconDatasource.query (http://181.101.141.201:3000/public/plugins/fastweb-openfalcon-datasource/datasource.js:25:28) at e.issueQueries (http://181.101.141.201:3000/public/build/0.be20b78823b4c9d93a84.js:7:19548) at e.issueQueries (http://181.101.141.201:3000/public/build/0.be20b78823b4c9d93a84.js:7:174101) at u (http://181.101.141.201:3000/public/build/vendor.2305a8e1d478628b1297.js:43:68722) at http://181.101.141.201:3000/public/build/vendor.2305a8e1d478628b1297.js:43:69127 at f.$digest (http://181.101.141.201:3000/public/build/vendor.2305a8e1d478628b1297.js:43:74824) at f.$apply (http://181.101.141.201:3000/public/build/vendor.2305a8e1d478628b1297.js:43:76638) at http://181.101.141.201:3000/public/build/vendor.2305a8e1d478628b1297.js:43:84012 at i (http://181.101.141.201:3000/public/build/vendor.2305a8e1d478628b1297.js:43:21870)
以下是谷歌的搜索的结果,很遗憾包括连作者在内都以为是程序BUG。
选取时间段为30分钟以下的时候,会报错~
选取时间段一小时以上的,完全正常。
观察数据的时间精度,没有精确到毫秒。当我们取30分钟以内的数据时,数据散点不够用,因此产生了错误。