-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Errno 101] Cannot connect to host brawlapi.cf:443 #19
Comments
Can you type in terminal Update: Try updating the wrapper using |
Wrapper updated, identical error:
|
Yeah, I don't really know how to fix this one... I've searched on google and stack overflow
Reference: aio-libs/aiohttp#2522 IF ANYONE KNOWS HOW TO FIX THIS, PLEASE SUBMIT A PULL REQUEST. REFER TO CONTRIBUTING.MD |
@milan252525 Maybe check your network settings/wifi? I can't seem to replicate your issue. |
Fixed in v2.3.2 or To resolve the issue, pass in connector = aiohttp.TCPConnector(use_dns_cache=False)
client = brawlstats.Client(token, is_async=True, connector=connector) OR if you want to use your own session: connector = aiohttp.TCPConnector(use_dns_cache=False)
session = aiohttp.ClientSession(connector=connector)
client = brawlstats.Client(token, is_async=True, session=session) |
Bug: It works in my pc but not in repl
Code: def get_info(tag):
connector = aiohttp.TCPConnector(use_dns_cache=False)
bs = brawlstats.Client(TOKEN, connector=connector)
player = bs.get_player(f"{tag}")
return player |
@MuhammadShafeeq this is not the same issue, this is a duplicate of issue #78 |
Describe the bug
Full Code
Expected behavior
Connect to the API and retrieve data
Actual behavior
Can't connect, sync client works.
The text was updated successfully, but these errors were encountered: