ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceeded wi

vrmapihcb
Helper

ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceeded wi

Good morning!

Could you please help me out with the following error:

ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceeded with url: /visariskmanager/v1/transaction/feed (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x01242B10>: Failed to establish a new connection: [WinError 10060] Попытка установить соединение была безуспешной, т.к. от другого компьютера за требуемое время не получен нужный отклик, или было разорвано уже установленное соединение из-за неверного отклика уже подключенного компьютера',))

when i try to connect to vrmAPI using the following code:
 

import requests

session = requests.Session()

session.trust_env = False

r = session.post('https://sandbox.api.visa.com/visariskmanager/v1/transaction/feed',
                  verify = ('C:/Users/Aliya.Nurkhan/Desktop/vrm_api/key_from_sandbox/DigiCertGlobalRootCA.pem'),
                  cert = ('C:/Users/Aliya.Nurkhan/Desktop/vrm_api/key_from_sandbox/cert.pem','C:/Users/Aliya.Nurkhan/Desktop/vrm_api/key_from_sandbox/key_11854035-5a32-4c34-94c1-ad6b4daad03f.pem'),
                  #headers = headers,
                  auth = ('user_id_from_sandbox', 'pass_from_sandbox'),
                  data = {  "serviceType": "Case Creation",
                            "alertStartTime": "20200618142500",
                            "alertEndTime": "20200618143000",
                            "VRMaccount": "VRMpass"
                            })

 

What am i doing wrong?

6 REPLIES 6
API_Products
Visa Developer Support Specialist

Re: ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceede

Hello @vrmapihcb,

 

I'm happy to help you resolve the issue. INC9623404 has been logged for the engineering team to take a look at and someone will have an update soon. Please let us know if there's other questions. 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

vrmapihcb
Helper

Re: ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceede

Thanks for your kindness.
I am waiting for someone's help.

I have tried also another code, and can share it with you if needed. 

API_Products
Visa Developer Support Specialist

Re: ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceede

Hey @vrmapihcb,

 

Thanks for your follow up message and kind words. We're working to resolve the issue and we'll get back to you if additional information is needed. Please let us know if there's anything else we can do to help.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

vrmapihcb
Helper

Re: ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceede

Good morning,
Thank you,  i have found out what caused this poblem. The problem is with firewall.

From my PC at work there is no access to url https://sandbox.api.visa.com/visariskmanager/v1/transaction/feed,
Could you please tell me what is the ip-address of this url?
I tried to find it using google and it shows 198.241.195.228, is it correct ip?

API_Products
Visa Developer Support Specialist

Re: ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceede

Hey @vrmapihcb,

 

I'm happy to help answer your question. Can you please check if you have enabled proxy on your PC ? Please also ask your network team to whitelist Visa's domain (*.api.visa.com) on the firewall so you can access the APIs. If you have other questions, let us know and someone will be happy to help.

 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.

API_Products
Visa Developer Support Specialist

Re: ConnectionError: HTTPSConnectionPool(host='sandbox.api.visa.com', port=443): Max retries exceede

Hey @vrmapihcb,

 

Can you please confirm if you still require an investigation for the issue? 




Thanks,

Diana H.



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.