devicelist returns invalid results
Opened this issue · 0 comments
Seitanas commented
Hello,
i wonder, what exact eyem4 model did you run tests on?
I have several interesting issues running this code:
- for me websocket port is not
80
but8082
- when port is set to
8082
, exporter tries to get data from eyem4 but crashes ondevicelist
part:
node:internal/process/promises:288
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "I18N_COMMON_INTER_ABNORMAL".] {
code: 'ERR_UNHANDLED_REJECTION'
}
I've added some debugging to see what data am i capable to get so:
{
result_code: 1,
result_msg: 'success',
result_data: {
service: 'connect',
token: 'aaaaa-bbbb-xxxx-xxxx-xxxxxxxxxxxxx',
uid: 1,
tips_disable: 0
}
}
{
result_code: 1,
result_msg: 'success',
result_data: {
service: 'state',
total_fault: '0',
total_alarm: '0',
wireless_conn_sts: '0',
wifi_conn_sts: '1',
eth_conn_sts: '0',
eth2_conn_sts: '0',
wireless_cmd: '170',
wifi_cmd: '170',
cloud_conn_sts: '1',
server_net_type: '1'
}
}
{
result_code: 201,
result_msg: 'I18N_COMMON_INTER_ABNORMAL',
result_data: { service: 'devicelist' }
}
It seems that api library is capable to get some data, but at devicelist
step something fails.
Since ports are different i suspect we are using different wifi dongles or firmware versions.