Hello Team, I have a client receiving error code 202 when submitting the query in API. Client says t

Hello Team, I have a client receiving error code 202 when submitting the query in API. Client says this is not good for they want to know if by removing "Prefer": "respond-async" from requestHeaders will help? Thanks!

Best Answer

  • Gurpreet
    Answer ✓

    Hi @Harold.Alfaro,

    HTTP 202 is not an error, but means to receive the data which takes long processing time. They can remove this header to perform a synchronous request, but then the application will be susceptible to network connection issues and they may loose all the data which server might have prepared for this client. Specifically, the Refinitiv network firewalls will disconnect connections which are idle for more then 25 minutes.

    Developer can read about async requests here.