Backend error 400

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


-6f769583c43776fe.jpg


1a7ead7b25ad7d81.png

How to solve it

Best Answer

  • @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.

Answers

  • @zhaofanfanzz

    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

  • @zhaofanfanzz

    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.


  • mmexport1629792428932.png


    mmexport1629791543174.png

    The code file cannot be uploaded


  • mmexport1629791546331.png

    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


    1629859055798.png



  • @zhaofanfanzz

    Happy to hear that, thanks for updating us back, and if you have any other queries feel free to raise them on the forum.