Python SSLError: HTTPSConnectionPool(host='hosted.datascopeapi.reuters.com', port=443)

Hi all,
I am trying to run the python notebooks to retrieve my token using:
r1 = requests.post(requestUrl, json=requestBody,headers=requestHeaders, proxies=proxy, verify=False)
But I got this error:
SSLError: HTTPSConnectionPool(host='hosted.datascopeapi.reuters.com', port=443): Max retries exceeded with url: /RestApi/v1/Authentication/RequestToken (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:852)'),))
Furthermore, I got a 403 error (see below) when I tried to open this link in a browser.
https://hosted.datascopeapi.reuters.com/
Any idea of what could be the pb?
Many thx
Server Error
403 - Forbidden: Access is denied.
You do not have permission to view this directory or page using the credentials that you supplied.
Best Answer
-
Hello @kevin.ferret,
When I put into browser https://hosted.datascopeapi.reuters.com/ I get forbidden, 403.
Try http://hosted.datascopeapi.reuters.com and https://hosted.datascope.reuters.com/
If you are unable to access these, suggest to verify RTH connectivity with your organizations network group/admin.
---
My understanding is that you are looking to integrate with RTH REST API, getting started, and your preferred language of integration is Python.
The interaction with Refinitiv Tick History REST, at a high level, is two-step:
1. Use valid credentials to obtain token
2. Use token to submit request.
I would suggest going through our Tutorials and getting this simple interaction running prior to creating your custom python notebook.
I would suggest Programming without SDK Tutorial, focusing on Postman ( tool for tuning "naked" HTTP requests, language-agnostic) and Python sections.
Our Postman section of tutorials comes with companion Postman collection, that you can import and run, to verify the connectivity and validity of your credentials, separately from custom code.
I would suggest REST API Tutorial 1: Connecting to the server.
Further, you can use the collection day-to-day, duplicate any of the requests provided as starter, and tune the request to your requirements, once the request result is as you require, you are ready to put the tuned request inside the custom python code.
Hope this helps, please let us know how this works for you
0
Answers
-
You may need to check the version of Python, requests library, and OpenSSL.
C:\Users>python
Python 3.7.9 (tags/v3.7.9:13c94747c7, Aug 17 2020, 18:58:18) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 1.1.1g 21 Apr 2020'
>>> quit()
C:\Users>pip list
Package Version
---------------------- ---------
...
pywin32 228
pywinpty 0.5.7
pyzmq 19.0.2
refinitiv-dataplatform 1.0.0a6
requests 2.22.0
requests-async 0.6.2
retrying 1.3.3
...0 -
Thanks for the reply but I cannot request the token, I am not even looking at downloading data for now. I am blocked with an SSL error in any case (i.e using the provided demo notebooks or mine). Thx
0 -
Thanks vm, seems to work now.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 625 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛