question

Upvotes
Accepted
5 3 3 4

Why am I getting java.net.UnknownHostException: hosted.datascopeapi.reuters.com ?

I've downloaded the java example and tried to execute DSS2Token,java but instead of getting a token, I got an exception.

PS : We received valid TRTH V2 user today.

Thanks

tick-history-rest-apijava
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.

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 19

Looks like you are not able to resolve host hosted.datascopeapi.reuters.com

Are you able to run DOS command shell as admin, and try pinging it, to see if it's resolved into an IP address?

C:\Windows\system32>ping hosted.datascopeapi.reuters.com


Pinging hosted.datascopeapi.reuters.com [192.165.219.152] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

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


C:\Windows\system32>
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.