You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aiohttp, as I understand it, cannot set the SSL certificate correctly. When trying to establish a connection with the login site of my university, aiohttp cannot get the correct answer and it most likely has something to do with SSL
Use the print() function to output the response text(await response.text())
Expected behavior
Getting an html page without errors(in particular, without error: "Unable to validate signature on query string")
Logs/tracebacks
Due to security reasons, I cannot fully present the logs in plain text, however, here is a part of the site logs(after await response.text() and printing it):
Backtrace:
1 www/_include.php:17 (SimpleSAML_exception_handler)
0 [builtin] (N/A)
Caused by: Exception: Unable to validate signature on query string.
Backtrace:
6 vendor/simplesamlphp/saml2/src/SAML2/HTTPRedirect.php:242 (SAML2\HTTPRedirect::validateSignature)
5 [builtin] (call_user_func)
4 vendor/simplesamlphp/saml2/src/SAML2/Message.php:263 (SAML2\Message::validate)
3 modules/saml/lib/Message.php:230 (SimpleSAML\Module\saml\Message::checkSign)
2 modules/saml/lib/Message.php:290 (SimpleSAML\Module\saml\Message::validateMessage)
1 modules/saml/lib/IdP/SAML2.php:383 (SimpleSAML\Module\saml\IdP\SAML2::receiveAuthnRequest)
0 www/saml2/idp/SSOService.php:26 (N/A)
The rest of the logs do not contain anything useful (as it seems to me), but if necessary, I am ready to provide aiohttp developers personally with information about the logs
$ python -m pip show multidictName: multidictVersion: 6.0.5Summary: multidict implementationHome-page: https://github.com/aio-libs/multidictAuthor: Andrew SvetlovAuthor-email: [email protected]License: Apache 2Location: ...\venv\lib\site-packagesRequires:Required-by: aiohttp, yarl
propcache Version
$ python -m pip show propcacheName: propcacheVersion: 0.2.0Summary: Accelerated property cacheHome-page: https://github.com/aio-libs/propcacheAuthor: Andrew SvetlovAuthor-email: [email protected]License: Apache-2.0Location: ...\venv\lib\site-packagesRequires:Required-by: yarl
yarl Version
$ python -m pip show yarlName: yarlVersion: 1.16.0Summary: Yet another URL libraryHome-page: https://github.com/aio-libs/yarlAuthor: Andrew SvetlovAuthor-email: [email protected]License: Apache-2.0Location: ...\venv\lib\site-packagesRequires: idna, multidict, propcacheRequired-by: aiohttp
OS
Windows 10
Related component
Client
Additional context
This request to the site contains 2 redirects. I tried using allow_redirects=False and passing all parameters to requests (cookies and headers) on my own. I also tried using verify_ssl=False and experimenting with the ssl context(ssl=...).
If you make the same request in other modules like requests, httpx or grequests, then there is no error and everything works correctly.
I apologize in advance if this does not belong to the BUG category, however, this error appears with the same actions only in aiohttp
Also, I'm sorry if the text is written with errors, because I used a translator in some places
Code of Conduct
I agree to follow the aio-libs Code of Conduct
The text was updated successfully, but these errors were encountered:
You'll probably need to experiment more with the SSLContext, we've seen firewalls that rejected requests when the allowed TLS version was 1.2-1.3, for example. Changing it to any other version range (e.g. 1.3-1.3) allowed the connection...
Changing it to any other version range (e.g. 1.3-1.3) allowed the connection...
Only version 1.2 works, but with the same error. There is an error with the TLSv1_3 version: aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host idp.grsu.by:443 ssl:default [[SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:997)]
TLSv1-TLSv1_1: aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host edu.grsu.by:443 ssl:default [[SSL: NO_CIPHERS_AVAILABLE] no ciphers available (_ssl.c:997)]
SSLv3: aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host edu.grsu.by:443 ssl:default [[SSL: NO_PROTOCOLS_AVAILABLE] no protocols available (_ssl.c:997)]
I also tried different variations, but the same error.
Describe the bug
Aiohttp, as I understand it, cannot set the SSL certificate correctly. When trying to establish a connection with the login site of my university, aiohttp cannot get the correct answer and it most likely has something to do with SSL
To Reproduce
Expected behavior
Getting an html page without errors(in particular, without error: "Unable to validate signature on query string")
Logs/tracebacks
Python Version
aiohttp Version
multidict Version
propcache Version
yarl Version
OS
Windows 10
Related component
Client
Additional context
This request to the site contains 2 redirects. I tried using allow_redirects=False and passing all parameters to requests (cookies and headers) on my own. I also tried using verify_ssl=False and experimenting with the ssl context(ssl=...).
If you make the same request in other modules like requests, httpx or grequests, then there is no error and everything works correctly.
I apologize in advance if this does not belong to the BUG category, however, this error appears with the same actions only in aiohttp
Also, I'm sorry if the text is written with errors, because I used a translator in some places
Code of Conduct
The text was updated successfully, but these errors were encountered: