Hello , Backend error 400
I downloaded the java example, where rms-world-check-one-api-pilot.thomsonreuters.com is modified to api-worldcheck.refinitiv.com and change V1 to v2
Here are my code and specific parameters
How to solve it
@zhaofanfanzz
is the date hardcoded? if it is it shouldn't be, it should be passed in the below format
Date now = new Date(); //format for date string Mon, 27 Mar 2017 15:19:36 GMT DateFormat df = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z"); df.setTimeZone(TimeZone.getTimeZone("GMT+3")); String date = df.format(now);
Can you send me the code via email to mehran.ahmedkhan@refinitiv.com? and also let me know your availability for tomorrow? we can jump on a quick meeting and get this resolved.
Hi,
I wasn't able to locate the associated account with your username.
Can you state your account name, please? basically the name of the account to which the API key and API secret belongs to that you are using in the java code.
Customer id A-01399622
linked to account 4186992
I don't know which of the above two is
On postman, I can use the sample to send the request successfully.
However, in the code, the reply to the request is backend errors 400,
I don't know what's wrong
Thanks for the details, I can see your account now.
Can you attach the code that you are using here? We would like to take a look at it and get back with our comments and we can probably jump on a quick call if needed post that.
The code file cannot be uploaded
This is the specific value of the variable in the code
Will it be related to that date?
I'll run this code again today, and the response is 401
The problem has been solved
It's a date formatting problem
Because my side is China, The formatted date is in Chinese
I convert the corresponding Chinese into English, and then send the request
The response is successful and the response becomes 200
Happy to hear that, thanks for updating us back, and if you have any other queries feel free to raise them on the forum.