Unexpected msg_type and error message in different language

edited March 2016 in General

An error message was returned in Russian, instead of the default selected language. This was reported before, it seems it was not fixed.

More importantly, note that the returned msg_type is send_ask instead of proposal, as it was expected.

{
    "echo_req":
    {
         "proposal": 1,
         "basis": "stake",
         "amount": 10000,
         "contract_type": "PUT",
         "barrier": "+0.00015",
         "symbol": "frxEURAUD",
         "currency": "USD",
         "duration": 3300,
         "duration_unit": "s",
         "req_id": 234885
     },
     "req_id": 234885,
     "error":
     {
         "code": "WrongResponse",
         "message": "Извините, при обработке Вашего запроса произошла ошибка."
     },
     "msg_type": "send_ask"
}

Comments

  • @fonda thanks will check why msg_type is wrong

  • @Raunak @Kaveh What is up with "WrongResponse"-errors (msg_type: "send_ask") today? I've grown use to experiencing about 10 of them a day, but I've now been forced to deal with one every 5 minutes or so. Are you guys close to resolving the issue?

    {
      "echo_req": {
        "symbol": "R_50",
        "subscribe": "1",
        "duration": "120",
        "currency": "USD",
        "amount": "100",
        "proposal": "1",
        "basis": "stake",
        "duration_unit": "s",
        "contract_type": "CALL"
      },
      "error": {
        "message": "Maaf, error terjadi ketika memproses permohonan Anda.",
        "code": "WrongResponse"
      },
      "msg_type": "send_ask"
    }
    
  • @fonda forgot to inform earlier but this has been fixed now.

  • I'm still seeing the problem. One example from today, at 2016-04-19 01:30:10 UTC:

    {
        "echo_req": {
            "symbol": "frxGBPJPY",
            "req_id": 8620158,
            "duration": 3,
            "currency": "USD",
            "amount": 1000,
            "proposal": 1,
            "basis": "stake",
            "duration_unit": "h",
            "contract_type": "PUT"
        },
        "req_id": 8620158,
        "error": {
            "message": "Maaf, error terjadi ketika memproses permohonan Anda.",
            "code": "WrongResponse"
        },
        "msg_type":"send_ask"
    }
    

    Other wrong language error messages received in the last 24 hours:

    Извините, при обработке Вашего запроса произошла ошибка.
    Lamentamos, ocorreu um erro durante o processamento do seu pedido.
    Lo sentimos, ha ocurrido un error mientras se procesaba su petición.
    Désolé, une erreur s'est produite pendant le traitement de votre demande.

    My hunch is that you have a race condition between a variable holding the language to respond in and the threads completing a request. Something like:

    1. Client A with language EN sends request 1
    2. You set a shared variable "response_language = EN"
    3. Client B with language FR sends request 2
    4. You set the same shared variable "response_language = FR"
    5. Request 1 from client A fails, you generate an error message using "response_language", which is now FR instead of EN, since it was shared between the threads
Sign In or Register to comment.