zinen / node-red-contrib-huawei-router

Node-RED node to get information and send commands to Huawei LTE routers.
MIT License
4 stars 1 forks source link

"Error: 108003: Already login" #3

Closed Aboe646 closed 2 years ago

Aboe646 commented 3 years ago

Hey, first of all, thanks for creating this node, it's awesome! I use it in my camper van in combination with a B535-232 and it works great, except that a lot of times I get the error "Error: 108003: Already login". After a while it works again without a problem. I have an inject of 30 seconds triggering the node. Do I something wrong?

P.s.: Is there a way to get the carriers name out of the information?

zinen commented 3 years ago

I have seen this error before too. I see it when running this node very often. Its a limit due to the way huawei-lte-api login session works. I haven't been able to solve it but to limit request to 5 per 1 minute(estimated limit from memory).

Ps: Can't seem to reach http://blog.hsp.dk/php-api-huawei-e5180-router/ to see what info can be found inside the router. Neither did searching "carrier" on the github for huawei-lte-api or huawei-router-api give any results. So i don't thing so.

Aboe646 commented 3 years ago

I only request the info (use the node) once every half minute and still get that error. Sometimes 5 minutes in row, other times I don't get the error for 15 minutes. I'm not really able to discern a pattern in it.

zinen commented 3 years ago

Should be fixed as of version 1.0.0 fd5666f. Note that this is a breaking change and you will have to modify your nodes after this update. Please report back if this is working for you.