-
-
Notifications
You must be signed in to change notification settings - Fork 544
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
TelegramAuth get_username get 'int' object is not subscriptable error #918
Comments
Can you please create a pull request with the change? |
Fleapse
added a commit
to Fleapse/social-core
that referenced
this issue
Jun 21, 2024
Make username always a string to avoid errors in the user pipeline.
Fleapse
pushed a commit
to Fleapse/social-core
that referenced
this issue
Jun 21, 2024
Make username always a string to avoid errors in the user pipeline.
11 tasks
#921 |
11 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behaviour
the user should not receive errors
Actual behaviour
the user receive errors:
'int' object is not subscriptable
in social_core/pipeline/user.py in get_username at line 46
Any logs, error output, etc?
'int' object is not subscriptable
in social_core/pipeline/user.py in get_username at line 46
Any other comments?
if the user does not have a username in telegram, then he cannot log in
this happens because in social_core.backends.telegram.TelegramAuth
if the user does not have a username, it is replaced with an id with the int type
For myself I'm going to fix it like this:
It seems that the same thing can be done here, so that others do not experience similar problems
The text was updated successfully, but these errors were encountered: