reddsaver icon indicating copy to clipboard operation
reddsaver copied to clipboard

error at launch: missing field `access_token`

Open cedricloneux opened this issue 2 years ago • 6 comments

App lauching with all env variables throw this error istantly.

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

Runned of macOS, tried homebrew version and release 0.4.0

cedricloneux avatar Dec 26 '22 02:12 cedricloneux

Getting this on Windows using Cargo and release 0.4.0. I noticed the reqwest version in the Cargo.lock is 0.10.10, which may be old.

Dakwal avatar Jan 12 '23 19:01 Dakwal

I'm getting this too on MacOS homebrew release.

surprisetalk avatar Feb 14 '23 00:02 surprisetalk

I'm getting this on Arch Linux.

astewartau avatar Mar 11 '23 11:03 astewartau

See https://github.com/manojkarthick/reddsaver/issues/44, does your password have a dollar sign in it? If so, escape the dollar sign with a backslash.

bhutch29 avatar Jun 01 '23 19:06 bhutch29

Getting the same issue, no dollar sign in my password

edit: it seems the system username was conflicting with it. I must have missed it in the readme. Not sure if this is the same for anyone else.

Tamnac avatar Jun 09 '23 03:06 Tamnac

I had the same error. As per instructions, you might need to unset the USERNAME env var.

Check it out by running:

reddsaver -e reddsaver.env -d reddsaver --show-config  2>&1 | grep -i USERNAME

If USERNAME = your computer's username and not your reddit's username, then there is a conflict.

In that case, you need to:

unset USERNAME

ram-on avatar Aug 16 '24 12:08 ram-on