From 2bc155a96a2c75e0f683536a2bb038a0aea53586 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sun, 5 Oct 2025 11:22:27 +0200 Subject: [PATCH] docs/jottacloud: update description of invalid_grant error according to changes --- docs/content/jottacloud.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/content/jottacloud.md b/docs/content/jottacloud.md index b66ec2e46..2cc67db7c 100644 --- a/docs/content/jottacloud.md +++ b/docs/content/jottacloud.md @@ -61,14 +61,24 @@ location where you also want to run rclone and access the same remote. Then you need to replace the token for one of them, using the [config reconnect](https://rclone.org/commands/rclone_config_reconnect/) command, which requires you to generate a new personal login token and supply as input. If you do not do this, the token may easily end up being invalidated, -resulting in both instances failing with an error message something along the -lines of: +resulting in both instances failing with an error message, something along +the lines of: ```text - oauth2: cannot fetch token: 400 Bad Request - Response: {"error":"invalid_grant","error_description":"Stale token"} +CRITICAL: Failed to create file system for "remote:": (...): couldn't fetch token: invalid_grant: maybe token expired? - try refreshing with "rclone config reconnect remote:" ``` +If you run rclone with verbosity level 2 (`-vv`), you will see a debug message +with an additional error description from the OAuth response: + +```text +DEBUG : remote: got fatal oauth error: oauth2: "invalid_grant" "Session doesn't have required client" +``` + +(The error description used to be "Stale token" instead of "Session doesn't +have required client", so you may see references to that in older descriptions +of this case.) + When this happens, you need to replace the token as described above to be able to use your remote again.