api.refinitiv.com; nested exception

I/O error on POST request for https://api.refinitiv.com/auth/oauth2/v1/token: api.refinitiv.com; nested exception is java.net.UnknownHostException: api.refinitiv.com.

Best Answer

  • wasin.w
    wasin.w admin
    Answer ✓

    Hello @shivaramane.sampath

    The error message means your local machine cannot resolve the api.refinitiv.com domain into IP Address.

    Can you try the following commands in your command prompt?

    nslookup api.refinitiv.com

    or

    ping api.refinitiv.com

    The results should be the commands can resolve the IP address(s) like the following:

    nslookup api.refinitiv.com
    Server:  UnKnown
    Address:  192.168.1.1

    Non-authoritative answer:
    Name:    edp-gw.edp-distribution-sdlc-prod.public.inf0.net
    Addresses:  99.83.242.11
    75.2.0.254

    Aliases:  api.refinitiv.com
    ping api.refinitiv.com

    Pinging edp-gw.edp-distribution-sdlc-prod.public.inf0.net [75.2.0.254] with 32 bytes of data:
    Request timed out.
    Request timed out.
    Request timed out.
    Request timed out.


    Ping statistics for 75.2.0.254:
        Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

    If not, you need to set the Proxy information as mentioned by my colleague or contact your local IT support team.

Answers

  • Hello @shivaramane.sampath,

    Which Java library are you using for this. Since the system cannot resolve the hostname, most likely your application is behind a proxy server. Please add the proxy information for the REST library you are using. In most cases, you can set a system proxy information like this -

    System.setProperty("proxyHost", "*****");
    System.setProperty("proxyPort", "****");