green-api / issues

11 stars 0 forks source link

Ошибка получения QR кода / Ошибка получения QR-кода #559

Open EscHelpNew opened 1 month ago

EscHelpNew commented 1 month ago

Ошибка Время ответа метода QR составляет 60 секунд. При первоначальном получении QR-кода и при проблемах с основным каналом провайдера, время ответа метода QR может достигать 60 секунд. По причине долгого ответа код успевает устареть.

Уровень API

Обходное решение

    • Увеличить время ожидания ответа метода QR до 60 секунд
    • Делать запросы метода QR в цикле с задержкой в 2 секунды
  1. Использовать метод GetAuthorizationCode для связывания устройства.

Error The response time of the QR method is 60 seconds. When initially receiving a QR code and if there are problems with the provider's main channel, the response time of the QR method can be up to 60 seconds. Due to the long response time, the code becomes outdated.

Level API

Workaround

    • Increase the QR method response timeout to 60 seconds
    • Make QR method requests in a loop with a delay of 2 seconds
  1. Use the GetAuthorizationCode method to associate the device.