Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python Requests SSL Error 504

Tags:

python

ssl

I am trying to connect to a login page(https page) using requests. My code:

import requests
requests.get('https page')

This still returns:

SSLError: [Errno 1] _ssl.c:504: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error

I set verify=False but it still returns the same error.

like image 923
54.224.239.54 Avatar asked Apr 26 '26 06:04

54.224.239.54


1 Answers

Install requests module like this. This will install the security package extras.

pip install requests[security]
like image 60
salmanwahed Avatar answered Apr 28 '26 19:04

salmanwahed