manojkarthick / reddsaver

CLI tool to download saved and upvoted media from Reddit
Apache License 2.0
143 stars 9 forks source link

Failure when reddit password includes a dollar sign #44

Open shatner opened 1 year ago

shatner commented 1 year ago

This may be of limited relevance now that access to reddit’s API is about to become restricted/expensive but I noticed today that if the user’s password in the .env file includes a dollar sign $ the script throws an error:

Error: ReqwestError(reqwest::Error { kind: Decode, source: Error("missing field `access_token`", line: 1, column: 26) })
bhutch29 commented 1 year ago

I just ran into this too. Looks like escaping the dollar sign with a backslash allowed the script to continue.