When I try to use above function in loop to map all my entries I got an error:
SSLError: HTTPSConnectionPool(host='www.uniprot.org', port=443): Max retries exceeded with url: /uploadlists/?from=EMBL&to=ACC&format=list&query=PNT36561+PNT27819+PNT19770+...+PNT25856 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')])")))
In one iteration of the function I send list of 500 ids and use time.sleep(20) and got this error usually in second iteration of the function.
The function without loop (with list of 500 ids) works properly.
How can I solve this problem?
I try to get UniProt ID from list of around 14 000 EMBL accessions. I use python code:
When I try to use above function in loop to map all my entries I got an error: SSLError: HTTPSConnectionPool(host='www.uniprot.org', port=443): Max retries exceeded with url: /uploadlists/?from=EMBL&to=ACC&format=list&query=PNT36561+PNT27819+PNT19770+...+PNT25856 (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_read_bytes', 'sslv3 alert handshake failure')])")))
In one iteration of the function I send list of 500 ids and use time.sleep(20) and got this error usually in second iteration of the function.
The function without loop (with list of 500 ids) works properly. How can I solve this problem?
Python version: 3.7.3 requests version: 2.21.0 OS: Debian 10