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

v1.10.2-mod-5: Error while checking AS connection pool stats: 'NoneType' object has no attribute 'connector' #28

Closed
jaller94 opened this issue Dec 3, 2021 · 1 comment · Fixed by #29
Assignees

Comments

@jaller94
Copy link

jaller94 commented Dec 3, 2021

[2021-12-03 14:57:14,883] [[email protected]] Error while checking AS connection pool stats: 'NoneType' object has no attribute 'connector'
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/mautrix_telegram/__main__.py", line 228, in _loop_check_as_connection_pool
    connector = self.az._http_session.connector
AttributeError: 'NoneType' object has no attribute 'connector'
[2021-12-03 14:57:14,884] [[email protected]] Ensuring connectivity to homeserver

PR that look responsible

@jaller94
Copy link
Author

jaller94 commented Dec 3, 2021

This line should likely just use the http_session method and catch the possible AttributeError("the http_session attribute can only be used after starting").

Another option is to set up this task in the start method. Until then there aren't going to be any updates posted to the metric anyway.

https://github.com/vector-im/mautrix-telegram/blob/5211f95f5116eb7cd633807bb00beb9b041495bd/mautrix_telegram/__main__.py#L228

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

Successfully merging a pull request may close this issue.

2 participants