hasscc / catlink

🐈️ Catlink scooper component for HomeAssistant
Apache License 2.0
21 stars 9 forks source link

Got devices for xxxx failed: 设备不在线或其他异常 #1

Open robertbigk opened 2 years ago

robertbigk commented 2 years ago

Hi,

I create account "733382471"

config.yaml

catlink:
  # Single account
  phone:     my phone # Username of Catlink APP
  password:  my passord # Password
  phone_iac: 48   # Optional, International access code, default is 86 (China)  hire I setup 48 like my phone ?
#  api_base:       # Optional, default is China server: https://app.catlinks.cn/api/ don't know how setup to Poland? 
#  scan_interval:  # Optional, default is 00:01:00

Got this error don't know more what I can do? ot devices for 733382471 failed: {'returnCode': 1000, 'toast': False, 'msg': '设备不在线或其他异常', 'data': {}, 'timestamp': 1647633619514, 'success': False}

that Chinese 'msg' Device is offline or otherwise abnormal

but when log to an account device is online and work fine

al-one commented 2 years ago

Please capture the APP requests.

robertbigk commented 2 years ago

Sorry im green witch this can You link some manual how to do that? W dniu 19.03.2022 09:40:39, Alone @.> pisze: Please capture the APP requests. — Reply to this email directly, view it on GitHub [https://github.com/hasscc/catlink/issues/1#issuecomment-1072969894], or unsubscribe [https://github.com/notifications/unsubscribe-auth/AIKWJPKTBG3PKSYW6JWOJJLVAWHIPANCNFSM5RCZRPTQ]. Triage notifications on the go with GitHub Mobile for iOS [https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675] or Android [https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub]. You are receiving this because you authored the thread.Message ID: @.>

al-one commented 2 years ago

Got devices for 733382471 failed: {'returnCode': 1000, 'toast': False, 'msg': '设备不在线或其他异常', 'data': {}, 'timestamp': 1647633619514, 'success': False}

I had the same error as yours in my logs some time ago, but it's back to normal now.

mayue1020 commented 2 years ago

应该是境外ip访问cn服务器的问题,我这边把api地址加入白名单就好了

Svenreitz1 commented 3 months ago

I get this error as well:

import requests proxie='xxx:yyy' req=requests.get('http://app.catlinks.cn/api/token/device/union/list/sorted', proxies={"http": proxie}) req.json()

results in:

{'returnCode': 1000, 'toast': False, 'msg': 'Device offline or other faults', 'data': {}, 'timestamp': 1712141966868, 'success': False}

also using different proxies doesn't change anything. Any idea?