Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Не работает добавление сессии #62

Open
devnulldevzero opened this issue Mar 24, 2021 · 2 comments
Open

Не работает добавление сессии #62

devnulldevzero opened this issue Mar 24, 2021 · 2 comments

Comments

@devnulldevzero
Copy link

Доброго дня.
После добавления сессии без app_id и app_hash, docker зависает на конфликнутой сессии.

Лог docker:

[2021-03-24 04:55:58] [warning]
TelegramApiServer ready.
Number of sessions: 0.
file_get_contents(http://ipv6.google.com/): Failed to open stream: Cannot assign requested address in Magic.php:307
Do you want to enter the API id and the API hash manually or automatically? (m/a)
Note that you can also provide them directly in the code using the settings: https://docs.madelineproto.xyz/docs/SETTINGS.html#settingsapp_infoapi_id

Надо как то продумать либо проверку на наличие app_id && app_hash, либо вовсе удалять сессию, которая зависает

@devnulldevzero
Copy link
Author

docker run -d -e TELEGRAM_API_ID={API_ID} -e TELEGRAM_API_HASH={d14e5fa7d36a1892a6b9b22d97651860} -e DB_TYPE=memory tas

Если вдруг вы пошли по пути docker build -t tas . - то команда сверху запускат tas по нормальному

@xtrime-ru
Copy link
Owner

Привет. Спасибо за фидбек.
Оно не зависает, оно ждет ввода данных с клавиатуры :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@xtrime-ru @devnulldevzero and others