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

[BUG] KeyError: 'expires_in' #133

Closed
Dan6erbond opened this issue Aug 31, 2021 · 0 comments · Fixed by #134
Closed

[BUG] KeyError: 'expires_in' #133

Dan6erbond opened this issue Aug 31, 2021 · 0 comments · Fixed by #134
Assignees
Labels
bug Something isn't working

Comments

@Dan6erbond
Copy link
Owner

Describe the bug

A clear and concise description of what the bug is.

KeyError: 'expires_in' is thrown when username or passwords contain special characters that need to be URL encoded.

To Reproduce

The code with which the issue can be reproduced.

Expected behavior

A clear and concise description of what you expected to happen.

Regular auth behavior.

Environment

A clear and concise description of what your environment looks like.

  • OS: Windows [e.g. Windows, Ubuntu]
  • Python version: 3.9 [e.g. 3.6, 3.8]
  • aPRAW version: 0.6.8-alpha [e.g. 0.2.0-alpha]

Additional context

Add any other context about the problem here.

Issue can be fixed by URL encoding password and username in apraw.models.User.password_grant.

@Dan6erbond Dan6erbond added the bug Something isn't working label Aug 31, 2021
@Dan6erbond Dan6erbond self-assigned this Aug 31, 2021
Dan6erbond added a commit that referenced this issue Aug 31, 2021
Dan6erbond added a commit that referenced this issue Aug 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant