manojkarthick / reddsaver

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

Missing field: "access_token" #42

Closed guenter-r closed 1 year ago

guenter-r commented 2 years ago

When running the script reddsaver -e reddsaver.env -d .

it immediately interrupts because of the following error:

Error: ReqwestError(reqwest::Error { kind: Decode, source: Error("missing fieldaccess_token", line: 1, column: 95) })

Any ideas where this is coming from? I have no knowledge of Rust, but tried to find where the error might be, could not find a way to resolve.. thanks a lot

szerencl commented 2 years ago

Make sure all env variables are filled out correctly in reddsaver.env https://github.com/manojkarthick/reddsaver/issues/2#issuecomment-753711896. And if you're on linux don't forget to unset USERNAME. This solved the issue for me.

guenter-r commented 1 year ago

I selected the wrong application type on reddit in the settings. Web app != script .... thanks anyways