question

Upvotes
Accepted
1 0 0 1

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.

#technologyrdp-apijavatoken
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
27k 65 17 14

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.

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
24.3k 62 15 21

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", "****");

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.

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.