Open skier233 opened 2 years ago
I'm pretty sure that's not what aiohttp does. Try using allow_redirect=False: https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientSession.trace_config
If it stops requesting a secure connection, then you know it's your app trying to redirect to https.
I notice that the URL is /webhook, won't you need a websocket for that anyway? https://docs.aiohttp.org/en/stable/client_quickstart.html#websockets
Not in this case
Another thing worth doing is updating aiohttp. There are several known issues in the 3.7 release, so better try with 3.8.
Describe the bug
I am making an http request and against my will, aiohttp is trying to execute it is an https request but is failing because it doesn't have a certificate:
To Reproduce
Expected behavior
aiohttp should execute the call as an http request instead of an https request
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
yarl Version
OS
Windows in python virtual environment
Related component
Client
Additional context
No response
Code of Conduct