Tinkoff / invest-python

Tinkoff Invest Python gRPC client
https://tinkoff.github.io/invest-python/
Apache License 2.0
301 stars 87 forks source link

Received RST_STREAM with error code 8 #210

Closed andrey-vrn closed 1 year ago

andrey-vrn commented 1 year ago

Что случилось?

Какое-то время назад стали появляться подобные ошибки, частота - несколько раз в день

Воспроизведение

No response

Tinkoff Invest Version

0.2.0-beta50

Python Version

3.10

OS

Linux

Логи

grpc.aio._call.AioRpcError: <AioRpcError of RPC that terminated with:
        status = StatusCode.CANCELLED
        details = "Received RST_STREAM with error code 8"
        debug_error_string = "UNKNOWN:Error received from peer ipv4:91.194.227.80:443 {grpc_message:"Received RST_STREAM with error code 8", grpc_status:1, created_time:"2023-03-22T12:43:17
.811263382+03:00"}"
irusland commented 1 year ago

duplicate of https://github.com/Tinkoff/invest-python/issues/160

AlexanderVolkovTCS commented 1 year ago

Мы не даем SLA на сроки жизни стримов - разрывы могут быть как на нашей стороне - плановое обновление серверов, инфраструктурные работы, ребуты, так и на стороне вашего провайдера. В последнее время нормой является разрывы стримов от нескольких раз в неделю до нескольких раз в день. Мы рекомендуем просто делать reconnect в случае потери связи, а для дозагрузки пропущенных данных - например трейдов - есть методы GetLastTrade()