andrewbanchich / shreddit

Delete your Reddit data.
MIT License
235 stars 10 forks source link

`invalid_grant` error #72

Closed Behinder closed 1 year ago

Behinder commented 1 year ago

Does it mean API was shut down one day earlier?

andrewbanchich commented 1 year ago

Do you have 2FA enabled?

Behinder commented 1 year ago

I never had on any account. Used Power Delete Suite instead

andrewbanchich commented 1 year ago

Usually invalid grant errors happen because of incorrect credentials. Can you double check the client ID, client secret, username, and password are all correct?

gxtu commented 1 year ago

This happened for me because I had special characters in the password set in shreddit.env. Wrapping it in single quotes fixed it. You should probably do the same (or escape any special characters) when passing the password on the command line.

Behinder commented 1 year ago

I dint have any special characters in the passwords. Irrelevant anyway shreddit stopped working

Sebastian Szwarc On 2 Jul 2023 at 23:07 +0200, gxtu @.***>, wrote:

This happened for me because I had special characters in the password set in shreddit.env. Wrapping it in single quotes fixed it. You should probably do the same (or escape any special characters) when passing the password on the command line. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

andrewbanchich commented 1 year ago

@Behinder Shreddit still works. I just tried.

akatakritos commented 1 year ago

This happened for me because I had special characters in the password set in shreddit.env. Wrapping it in single quotes fixed it. You should probably do the same (or escape any special characters) when passing the password on the command line.

Thanks for this. My password had a $ in which was interpreted as a variable interpolation (even in the env file). Single quotes fixed it for me.

Thanks!