DSS API error urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='selectapi.datascope.re
We tried out the request below but unfortunately now we get a timeout error. Could you check the error message on your side and what the issue is about:
Our request:
{'ExtractionRequest': {'@odata.type': '#DataScope.Select.Api.Extractions.ExtractionRequests.LegalEntityDetailExtractionRequest', 'ContentFieldNames': ['ID', 'Headquarters Country'], 'IdentifierList': {'@odata.type': '#DataScope.Select.Api.Extractions.ExtractionRequests.EntityIdentifierListWithValidationOptions', 'EntityIdentifiers': [{'Identifier': 'US88160R1014', 'IdentifierType': 'Isin'}]}}}
The error message below.
Maybe we can also expand the timeout level if this ist he issue?
Best regards,
Samuel
Traceback (most recent call last):
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\connectionpool.py", line 466, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\connectionpool.py", line 461, in _make_request
httplib_response = conn.getresponse()
^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\http\client.py", line 1378, in getresponse
response.begin()
File "C:\Users\sbenz\anaconda3\Lib\http\client.py", line 318, in begin
version, status, reason = self._read_status()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\http\client.py", line 279, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\socket.py", line 706, in readinto
return self._sock.recv_into(b)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\ssl.py", line 1311, in recv_into
return self.read(nbytes, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\ssl.py", line 1167, in read
return self._sslobj.read(len, buffer)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\sbenz\anaconda3\Lib\site-packages\requests\adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\connectionpool.py", line 798, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\util\retry.py", line 550, in increment
raise six.reraise(type(error), error, _stacktrace)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\packages\six.py", line 770, in reraise
raise value
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\connectionpool.py", line 714, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\connectionpool.py", line 468, in _make_request
self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
File "C:\Users\sbenz\anaconda3\Lib\site-packages\urllib3\connectionpool.py", line 357, in _raise_timeout
raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='selectapi.datascope.refinitiv.com', port=443): Read timed out. (read timeout=5)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\Users\sbenz\Documents\DSS_Prozesse\DueDilligence - Kopie\monitorISIN.py", line 42, in <module>
df_shares = get_legal_attributions(df_shares,shareAttributions, header, resource_path_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\Users\sbenz\Documents\DSS_Prozesse\DueDilligence - Kopie\attributions_Importer.py", line 22, in get_legal_attributions
reply = requests.post(resource_path_url, headers=header, data=json.dumps(requestPayload), timeout=5)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\requests\api.py", line 115, in post
return request("post", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sbenz\anaconda3\Lib\site-packages\requests\adapters.py", line 532, in send
raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='selectapi.datascope.refinitiv.com', port=443): Read timed out. (read timeout=5)
Best Answer
-
Thank you for reaching out to us.
It looks like to be the HTTP timeout on the client side. You need to increase the timeout value.
The timeout value should be more than 30 seconds.
0
Answers
-
0
-
we increased the timeout to 30 seconds now.
Our request is@{'ExtractionRequest': {'@odata.type': '#DataScope.Select.Api.Extractions.ExtractionRequests.LegalEntityDetailExtractionRequest', 'ContentFieldNames': ['Official Name', 'ID Type', 'ID', 'Headquarters Country'], 'IdentifierList': {'@odata.type': '#DataScope.Select.Api.Extractions.ExtractionRequests.EntityIdentifierListWithValidationOptions', 'EntityIdentifiers': [{'Identifier': 'US88160R1014', 'IdentifierType': 'Isin'}]}}}
Reply from server is „200“ – SUCCESS but the reply content is the following:
@{'@odata.context': 'https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#DataScope.Select.Api.Extractions.ExtractionRequests.ExtractionResult', 'Contents': [], 'Notes': ['Extraction Services Version 18.1.1.47398 (22332929efe9), Built May 17 2024 17:23:05\r\nProcessing started at 24.06.2024 08:49:11.\r\nUser ID: 9035848\r\nExtraction ID: 674240095\r\nCorrelation ID: CiD/9035848/AAAAAA.08fbcd51263a021c/RA/EXT.674240095\r\nSchedule: _OnD_0x08fbcd51264a021c (ID = 0x08fbcd51277a021c)\r\nInput List (1 items): _OnD_0x08fbcd51264a021c (ID = 08fbcd51269a021c) Created: 24.06.2024 08:49:09 Last Modified: 24.06.2024 08:49:09\r\nSchedule Time: 24.06.2024 08:49:09\r\nReport Template (10 fields): _OnD_0x08fbcd51264a021c (ID = 0x08fbcd51265a021c) Created: 24.06.2024 08:49:09 Last Modified: 24.06.2024 08:49:09\r\n1 Legal Entity suppressed due to detail change not on or after 24.06.2024.\r\n1 Legal Entity suppressed due to detail change not on or after 24.06.2024.\r\nProcessing completed successfully at 24.06.2024 08:49:11, taking 0.306 Secs.\r\nExtraction finished at 24.06.2024 08:49:11 UTC, with servers: xc71cegqA06, QSDHA1 (0.0 secs), QSHC01 (0.0 secs)\r\nNo usage to report -- 1 Legal entity in the input list had no reported data.\r\n']}- So the feedback says we don’t get feedback for all the requested fields. How is that possible since we did the same request as on your side.
0 -
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛