SSLerror when running Target API with Python

Avatar

Avatar
Shape 1
Level 2
jonathanl557422
Level 2

Likes

16 likes

Total Posts

17 posts

Correct reply

1 solution
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile

Avatar
Shape 1
Level 2
jonathanl557422
Level 2

Likes

16 likes

Total Posts

17 posts

Correct reply

1 solution
Top badges earned
Shape 1
Give Back 5
Give Back 3
Give Back
Boost 5
View profile
jonathanl557422
Level 2

18-11-2020

I'm able to connect and get API responses with an API client (Insomnia).

However, I keep getting an SSL error when trying to do the same with Python. Anyone managed to get it to work without the SSL error or using verify=false?

 

This is the error I get:

 

SSLError: HTTPSConnectionPool(host='mc.adobe.io', port=443): Max retries exceeded with url: /sunlifeassurance/target/activities/ (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])")))

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Contributor
Level 7
Eric_Vidana
Level 7

Likes

157 likes

Total Posts

151 posts

Correct reply

37 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Contributor
Level 7
Eric_Vidana
Level 7

Likes

157 likes

Total Posts

151 posts

Correct reply

37 solutions
Top badges earned
Contributor
Shape 1
Give Back 5
Give Back 3
Give Back 25
View profile
Eric_Vidana
Level 7

18-11-2020

Are you able to download the cert from https://mc.adobe.io/ and reference to it in the verify param? Not a python expert and not sure what library you are using. 

Answers (0)