python-epo-ops-client icon indicating copy to clipboard operation
python-epo-ops-client copied to clipboard

SSL Error

Open Linzm99 opened this issue 2 years ago • 1 comments

Hi I want to do a basic published data search request.

On my home PC it's working fine, but on my Laptop I get the

requests.exceptions.SSLError: HTTPSConnectionPool(host='ops.epo.org', port=443): Max retries exceeded with url: /3.2/auth/accesstoken (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))

error.

Code:

import epo_ops

client = epo_ops.Client(key='...', secret='...')  # Instantiate client
response = client.published_data_search('ti all "plastic"',1,25)

Is this a device configuration problem or some other library version problem?

Any ideas?

Linzm99 avatar Mar 18 '24 14:03 Linzm99

Good question... Can you try comparing pip freeze on both PC and laptop? If I had to guess, I'd think that you have an old ssl version on your lappy... What OS on each? What version of Python?

dbolser avatar Mar 24 '24 20:03 dbolser

This resolved by itself I tried it again and now it works. Thanks anyways!

Linzm99 avatar May 14 '24 09:05 Linzm99