epoplavskis / pyit600

MIT License
18 stars 19 forks source link

EUID seems invalid #25

Closed pboca closed 2 years ago

pboca commented 3 years ago

Hello! Have you had any issues using the EUID on the gateway? I get an error immediately after it tries to connect and enumerate all devices. It wont succeed with readall request even if I tried all the possible combinations.

pboca commented 3 years ago

Also I checked everything, including Disable Local Wifi Mode set to No and also reviewed the code to see what it does.

pekarsky commented 3 years ago

@pboca @jvitkauskas having this (euid and address was checked a dozen times) bash-5.1# ./main.py --host 192.168.100.185 --euid 001E5E0902621653 --debug DEBUG:pyit600:Trying to connect to gateway at 192.168.100.185 DEBUG:pyit600:Gateway request: POST http://192.168.100.185:80/deviceid/read {"requestAttr": "readall"}

ERROR:pyit600:Timeout while connecting to gateway: Authentication error: check if you have specified gateway's EUID correctly.

tcpdump in different session: 21:32:47.295717 IP 192.168.100.50.51894 > 192.168.100.185.80: tcp 0 E..<..@.@.....d2..d....P.6..........Jk......... ............ 21:32:47.296145 IP 192.168.100.185.80 > 192.168.100.50.51894: tcp 0 E..<..@.@.....d...d2.P.....9.6......s.......... ............ 21:32:47.296232 IP 192.168.100.50.51894 > 192.168.100.185.80: tcp 0 E..4..@.@.....d2..d....P.6.....:....Jc..... ........ 21:32:47.296909 IP 192.168.100.50.51894 > 192.168.100.185.80: tcp 196 E.....@.@.....d2..d....P.6.....:....K'..... ........POST /deviceid/read HTTP/1.1 Host: 192.168.100.185 content-type: application/json Accept: / Accept-Encoding: gzip, deflate User-Agent: Python/3.9 aiohttp/3.7.4.post0 Content-Length: 32

21:32:47.297064 IP 192.168.100.50.51894 > 192.168.100.185.80: tcp 32 E..T..@.@.....d2..d....P.6.....:....J...... ............k).t..IB.....+Y...y........{ 21:32:47.297265 IP 192.168.100.185.80 > 192.168.100.50.51894: tcp 0 E..46.@.@.....d...d2.P.....:.6............. ........ 21:32:47.297337 IP 192.168.100.185.80 > 192.168.100.50.51894: tcp 0 E..46.@.@.....d...d2.P.....:.6............. ........ 21:32:52.298965 IP 192.168.100.50.51894 > 192.168.100.185.80: tcp 0 E..4..@.@.....d2..d....P.6.....:....Jc..... ........ 21:32:52.299233 IP 192.168.100.50.51898 > 192.168.100.185.80: tcp 0 E..<..@.@.dk..d2..d....P.:x.........Jk......... ............ 21:32:52.299624 IP 192.168.100.185.80 > 192.168.100.50.51898: tcp 0 E..<..@.@.....d...d2.P.....9.:x................ ............ 21:32:52.299724 IP 192.168.100.50.51898 > 192.168.100.185.80: tcp 0 E..4..@.@.dr..d2..d....P.:x....:....Jc..... ........ 21:32:52.300325 IP 192.168.100.50.51898 > 192.168.100.185.80: tcp 130 E.....@.@.c...d2..d....P.:x....:....J...... ........GET / HTTP/1.1 Host: 192.168.100.185 Accept: / Accept-Encoding: gzip, deflate User-Agent: Python/3.9 aiohttp/3.7.4.post0

21:32:52.300692 IP 192.168.100.185.80 > 192.168.100.50.51898: tcp 0 E..4..@.@.....d...d2.P.....:.:y.....$%..... ........ 21:32:52.336468 IP 192.168.100.185.80 > 192.168.100.50.51894: tcp 0 E..46.@.@.....d...d2.P.....:.6.......(..... ........ 21:32:52.359339 IP 192.168.100.185.80 > 192.168.100.50.51898: tcp 350 E.....@.@.....d...d2.P.....:.:y............ ........HTTP/1.1 200 OK Keep-Alive: timeout=30, max=199 X-Frame-Options: SAMEORIGIN Content-Type: text/html X-Content-Type-Options: nosniff Date: Wed, 06 Oct 2021 19:32:51 GMT ETag: "48-3584-606fcaf4" Content-Length: 13700 X-XSS-Protection: 1; mode=block Last-Modified: Fri, 09 Apr 2021 03:33:08 GMT Connection: Keep-Alive Accept-Ranges: bytes

21:32:52.359422 IP 192.168.100.50.51898 > 192.168.100.185.80: tcp 0 E..4..@.@.dp..d2..d....P.:y.........Jc..... ........ 21:32:52.359511 IP 192.168.100.185.80 > 192.168.100.50.51898: tcp 1448 E.....@.@..P..d...d2.P.......:y......~..... ........

AppwebTest Githubissues.
  • Githubissues is a development platform for aggregating issues.