invest-python icon indicating copy to clipboard operation
invest-python copied to clipboard

[Bug] failed to connect to all addresses; last error: UNKNOWN: tcp handshaker shutdown

Open koblents opened this issue 3 years ago • 1 comments

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

При попытке получения сделок/аккаунтов периодически выпадает ошибка - это какие-то проблемы на стороне API или я что-то делаю не так?

tinkoff.invest.exceptions.RequestError: (<StatusCode.UNAVAILABLE: (14, 'unavailable')>, 'failed to connect to all addresses; last error: UNKNOWN: tcp handshaker shutdown', None)

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

No response

Tinkoff Invest Version

0.2.0-beta36

Python Version

3.8

OS

Mac OS

Логи

No response

koblents avatar Oct 14 '22 11:10 koblents

сервак у них упал походу, у меня тож такая тема

TheLegionCrazy avatar Oct 14 '22 12:10 TheLegionCrazy

Прикладывайте к issue шаги воспроизведения, пожалуйста.

Скрипт

with Client(token) as client:
    response = client.users.get_accounts()
    print(response)
    account, *_ = response.accounts
    print(client.orders.get_orders(account_id=account.id))

Выполняется успешно.

Откройте проблему заново если проблемы будут наблюдаться вновь.

irusland avatar Oct 23 '22 20:10 irusland

Прикладывайте к issue шаги воспроизведения, пожалуйста.

Скрипт

with Client(token) as client:
    response = client.users.get_accounts()
    print(response)
    account, *_ = response.accounts
    print(client.orders.get_orders(account_id=account.id))

Выполняется успешно.

Откройте проблему заново если проблемы будут наблюдаться вновь.

Ровно та же ситуация. Повесили получение ордеров на крон (они должны постоянно обновляться), десять-двадцать раз в сутки получаем ошибку. Чиниться как-то?

UPD: Упс, на самом деле ошибка выглядит так: (<StatusCode.UNAVAILABLE: (14, 'unavailable')>, 'failed to connect to all addresses; last error: UNKNOWN: ipv4:91.194.227.80:443: Failed to connect to remote host: FD Shutdown', None)

Мне открывать новый issue или этим займётся кто-то?

marperia avatar Apr 18 '23 19:04 marperia