For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 2 2

DSS API error urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='selectapi.datascope.refinitiv.com', port=443): Read timed out. (read timeout=5)

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)

#technologydss-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
84.6k 287 53 77

@jose.uy0

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Jirapongse thank you


we have a follow up .

Upvotes
1 0 2 2

@Jirapongse


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.
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@jose.uy0

Please contact the DSS support team directly via MyAccount to verify the request message and extraction.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.