Error: socket hang up | Unexpected end of file from server; java.net.SocketException

Tanvi
Tanvi Newcomer
edited January 22 in DSS

We're querying the refinitiv API - https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotes

We're using the 'PremiumEndOfDayPricingExtractionRequest' template. However, when we hit the API through postman/ through code, we're facing 'Error: socket hang up' and 'Unexpected end of file from server; java.net.SocketException' respectively.

Attaching the post body for reference (refinitiv_api_request.txt)


Furthermore, the issue occurs randomly.

Please assist.

Answers

  • Hello @Tanvi

    It is not clear if you are using asynchronous downloads from AWS directly. If not, please look into this article on how to implement this.

    If you are using async and still getting timeout, I can recommend to increase the wait time. If these suggestions don't work, you can open a ticket at LSEG MyAccount, and have product team check the server logs for the reason for disconnect.