DSS REST API got connection reset error

One of my customers used our code sample to try to access to DSS data via REST API, while it got connection reset error when attempting to establish connection. Please help to take a look at the screenshot below and advise how to find the cause.image


Thanks,

Alec

Best Answer

  • Liheng.Wang,

    It looks like the customer downloaded our DSS Java samples package, took the code from one of them (DSS2TokenProxy) and modified it while putting it in his own Maven / Spring environment. With his credentials he also hard coded the IP of a proxy server in the code.

    If I run that code with the parameters that are in the file you sent I get a "Service Unavailable" error message, because the proxy IP set by your customer cannot be reached from my network.

    If the customer has a proxy, but the proxy requires authentication (which is not included in that particular code sample), then it might result in a connection reset. I cannot guarantee what error message will be delivered because I don't have the infrastructure to test that.

    In conclusion:

    • If the customer does not have a proxy he should not be using that sample, but instead use that from sample DSS2Token.
    • If he has a proxy, maybe it requires authentication ? In that case he should be using sample DSS2TokenProxyAuth (note that this sample only supports basic user/password proxy authentication, we do not have samples for other proxy authentication mechanisms).

Answers

  • Liheng.Wang,

    This type of error message can be due to many causes. Could you ask the customer to share his code, so we can try it out ? Also please ask if there are any firewalls or proxies between the internet and the machine where the code is running.

  • Hi Christiaan, thanks for your help. As far as I know, there is no firewall or network issue at the client side. Because they could telnet to the destination server.

    Actually the customer only used the demo code for testing, and they didn't develp its own code yet. Please download the demo code from the link below.

    Removed link

    Thanks,

    Alec

  • No worry about that as the user credentials has expired. The customer downloaded this demo code from this portal, developers.refinitiv.com, so they are quite curious why it doesn't work. You mentioned it uses a proxy, does it cause the connection reset issue?
  • Thanks for notice. This is a free trial ID for testing and development purpose as the customer can't use its production ID for this. And it is expected to expire soon if it doesn't. While I will tell the customer to change password if they continue to use it.
  • Thank you so much for the advice. I will talk to the customer about it and update you later. I believe they don't use proxy therefore they should use DSS2Token. Have a good day.