arraylabs / pymyq

Python wrapper for MyQ API
MIT License
112 stars 42 forks source link

API access broken again? 2021-02-19 #83

Closed dseven closed 3 years ago

dseven commented 3 years ago

Seems to have stopped working (for me, at least) at 22:31 UTC - home assistant reported:

2021-02-19 14:31:05 ERROR (MainThread) [homeassistant.components.myq] Error fetching myq devices data: Error trying to re-authenticate to myQ service: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: 502 - Bad Gateway

and on restart:

2021-02-19 15:46:28 ERROR (MainThread) [pymyq.api] Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: [Errno 104] Connection reset by peer
2021-02-19 15:46:28 WARNING (MainThread) [homeassistant.config_entries] Config entry 'xxx' for myq integration not ready yet. Retrying in 5 seconds
2021-02-19 15:46:49 ERROR (MainThread) [pymyq.api] Authentication failed: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: [Errno 104] Connection reset by peer
2021-02-19 15:46:49 WARNING (MainThread) [homeassistant.config_entries] Config entry 'xxx' for myq integration not ready yet. Retrying in 10 seconds

The usual test program hangs:

# cat testmyq.py
import asyncio
from aiohttp import ClientSession
import pymyq

import logging

logging.basicConfig(level=logging.DEBUG)

async def main() -> None:
    async with ClientSession() as websession:
        myq = await pymyq.login('xxx', 'yyy', websession)
        devices = myq.devices
        for dev, info in devices.items():
            print('%(device_family)s: %(name)s' % info.device_json)

asyncio.get_event_loop().run_until_complete(main())
bash-5.0# python3 testmyq.py
DEBUG:asyncio:Using selector: EpollSelector
DEBUG:pymyq.api:Performing initial authentication into MyQ
DEBUG:pymyq.api:Scheduling token refresh, last refresh was None
DEBUG:pymyq.api:Initiating OAuth authentication
DEBUG:pymyq.api:Retrieving authentication page
DEBUG:pymyq.request:Sending myq api request https://partner-identity.myq-cloud.com/connect/authorize and headers {'redirect': 'follow'} with connection pooling

with both 3.0.1 and 3.0.3

luisiam commented 3 years ago

I am facing the same issue. Running Home Assistant 2021.2.3.

rgroce commented 3 years ago

This appears to be a myQ issue. The myQ app won’t log in either.

luisiam commented 3 years ago

MyQ app is working on my iPhone.

dseven commented 3 years ago

Yeah, Android app is working for me too .. hmmm

rgroce commented 3 years ago

https://mobile.twitter.com/myQConnect/status/1362898565572534277?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Etweet

waseltzer commented 3 years ago

MyQ is broken for me, too:

2021-02-19 14:54:18 ERROR (MainThread) [homeassistant.components.myq] Error fetching myq devices data: Error trying to re-authenticate to myQ service: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: 502 - Bad Gateway 2021-02-19 16:41:08 ERROR (MainThread) [homeassistant.components.myq] Error fetching myq devices data: Error trying to re-authenticate to myQ service: Error requesting data from https://partner-identity.myq-cloud.com/connect/authorize: [Errno 104] Connection reset by peer

Running: core-2021.2.3, supervisor-2021.02.11

dseven commented 3 years ago

Seems to be working again 🚀 🥳