Closed soilstack closed 3 years ago
Follow-up on this, it actually does return a result (printing the number of kills (336)). But still not sure about the 'unclosed connector' complaint.
To fix this use with api.Auth(...):
or end your run()
with an yield from auth.close()
.
Also I'd advise you use async/await
rather than asyncio.courotine / yield from
assuming you're using python 3.5+
Running python 3.7.3. Trying the basic example:
throws:
Not familiar w3ith asynio, so not sure where to even begin debugging. My login user/pwd pair is correct. If I try to login with intentionally bad credentials, I get a different fail:
r6sapi.exceptions.FailedToConnect: HTTP 401: Invalid credentials
Also, note, I
pip install r6sapi
into my conda environment. I saw that aiohttp was version 2.3.10. See in the git repository it's supposed to be >= 2.3.3. So I uninstalled, reinstalled it with 2.3.3 but I still get the identical error.