question

Upvotes
Accepted
262 8 9 15

When we are creating an authentication token programmatically (via Java), we are getting unknown characters,

When we are creating an authentication token programmatically (via Java), we are getting unknown characters,. (the issue was on the response parsing part)

Whereas the response json string was expected. But with same descriptions we are able to generate requestToken via POSTMAN.


Logs:

11-May-2021 10:59:13.141 INFO RefinitivCommsService:40 - Executing refinitiv RestApi, baseUrl : https://hosted.datascopeapi.reuters.com/RestApi/v1/Authentication/RequestToken [hosted.datascopeapi.reuters.com]

11-May-2021 10:59:13.154 INFO RefinitivCommsService:49 - Request JSON string : {"Credentials":{"Username":"********","Password":"********"}}

11-May-2021 11:01:09.660 INFO RefinitivCommsService:55 - Response received from refinitiv, JSON string : 笢䁯摡瑡⹣潮瑥硴∺≨瑴灳㨯⽨潳瑥搮摡瑡獣潰敡灩⹲敵瑥牳⹣潭⽒敳瑁灩⽶ㄯ⑭整慤慴愣䕤洮却物湧∬≶慬略∺≟欸捄扮浡杸䝯杔㕒噂䩶也穤剺歲卤佬剫杁癁特弴䙒捪桫呭嘸㝒噵㘴癢㥟兔敭浘に奊楍䩒㍦坏椵㝌䭅稭剑扴䵱䡓獸千照摭噉捧朷䙺內潕䉬来呎瘸摄䍸䱇䵱奱海婗䵸㍎噂男昰婦側弭癐穚煹䴹㔹㑤䕏婇汱㝨偖洴㉥爴ぢ㥦搱昶婃䍯㉂㉫㍦癳佮䱃㈶䥓ⵂ瀱呱癢牷噒㕴戲䭢ㅑ牡


cid:ef70117e-ef79-4fba-b6e6-eab443dfe6bc@Image_0_


cid:e33421c2-d942-4657-ab7f-29649a96b6c8@Image_1_

tick-history-rest-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@Beera.Rajesh

I have tested with the DSS Java Code Examples (DSS2Token.java) available at https://developers.refinitiv.com/en/api-catalog/datascope-select/datascope-select-rest-api/download.

It works fine.

Please test with the example code and share the result.


1620809733688.png (15.3 KiB)
1620809765451.png (33.3 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea