SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1091)')))

Hello Team,

Got this error during Run on Friday (15th Nov 2024), accessing "https://selectapi.datascope.refinitiv.com/RestApi/v1/Search/FuturesAndOptionsSearch"

SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1091)')))

Also following this error got one more error -

DataScope Authentication failed with response code : 429

And this error happened after certain instrumenets were already processed.

Could you please guide and help on this asap??

Thank you,

Trisha Gehlot

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @trisha.gehlot

    Thank you for reaching out to us.

    I am not sure about the "SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1091)')))" but it should be the problem at the client side.

    I ran the following code and it works fine.

    import requests
    import json url = "https://selectapi.datascope.refinitiv.com/RestApi/v1/Search/FuturesAndOptionsSearch" payload = json.dumps({
    "SearchRequest": {
    "FileCodes": None,
    "CurrencyCodes": None,
    "ExchangeCodes": None,
    "StrikePrice": {
    "@odata.type": "#DataScope.Select.Api.Search.NumericRangeComparison",
    "From": 85,
    "To": 88
    },
    "ExpirationDate": {
    "@odata.type": "#DataScope.Select.Api.Search.DateValueComparison",
    "ComparisonOperator": "GreaterThanEquals",
    "Value": "2016-12-31T00:00:00.000Z"
    },
    "IdentifierType": "Ric",
    "Identifier": "ED*",
    "PreferredIdentifierType": "Ric",
    "UnderlyingRic": "ED"
    }
    })
    headers = {
    'Prefer': 'respond-async',
    'Content-Type': 'application/json',
    'Authorization': 'Token <token>'
    } response = requests.request("POST", url, headers=headers, data=payload) print(response.text)

    You can test it with the simple code.

    Regarding the 429, it should be the 429 Too Many Requests status code.

    This response is returned if the client has exceeded their allowed number of requests or requested data-points. The error message will include the best recourse to resolve this issue. This may be include reducing the number of instruments per request, reducing the number of data points, reducing the number of requests per hour or reducing the number of concurrent requests.

    For more information, please refer to the LSEG DataScope Select Best Practices & Fair Usage Policy. Otherwise, you can contact the DSS support team directly via MyAccount to verify the server log.

  • Thank you @Jirapongse !!

    I rerun again Yesterday, now the process is running fine.
    So need to know if there was any down server, temporary outage or any issue on Friday/Saturday??

    As from yesterday haven't got 429 or SSL Error.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @trisha.gehlot

    Please contact the DSS support team directly via MyAccount to verify if there was any outage on Friday/Saturday.