添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
open search

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?

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?