super-productivity: Google Drive Sync: Token Creation Failed
Your Environment
- Version used: 7.3.3 - tried both the installer from gihub releases files and from Microsoft Store
- Operating System and version: Windows 10 - version 21H1 - Build 19043.1083
- Desktop Environment:
- Browser Name and version: NOT using web version, but in getting oauth token I have attempted both Brave and Edge just in case
Expected Behavior
- Begin using superProductivity. Become vastly more productive in a life changing way. Stop to think “thanks to @johannesjo I am now super productive, let me go sponsor him on Github”. Sponsor dev. Decide that you need this on all your devices, thus need to sync.
- Open Settings, go to sync
- check enable sync, choose Google Drive provider, click Get Authorization Code
- Google login page opens up, select one of my currently logged in accounts, give permission.
- Paste auth code, stuff syncs.
Current Behavior
I get a “Token Creation Failed” message, more on console and log outputs below. Works fine on Android. I have attempted several different workarounds, uninstalling, reinstalling, clearing the local data folders, trying the Microsoft Store version instead, remove the permissions in google account (I guess generated by my android install) and delete the google drive file, start all over again. I will list below in Steps to Reproduce below
Steps to Reproduce (for bugs)
- See step 1 above from Expected Behavior
- Install using .exe on PC and begin using, creating several tasks and tweaking settings
- Install android app, enable sync there
- Go back to PC app, try to enable sync there. Login behavior goes as expected. Copy token
- Paste token on input in superproductivity and press save
- get an error banner saying “Token Creation Failed”
- Check google drive, there is a file there, from the Android app.
- Try again on PC app, but changing filename setting by appending _2 at the end - same result
- Disable sync on android app
- Delete google drive file
- remove google account permission
- Try again from PC, same error
- Install Microsoft Store version, same error
- Backup the data, uninstall both versions
- Reinstall, data already there, so uninstall again and delete superProd folders in user AppData
- Reinstall again, blank slate, try again and same result
- Import backup data, try again, same result
- Between each of the attempts after no. 12, I checked whether SuperProd was in google account permissions and if file was on google drive - it was not.
Console Output
I am attaching it due to length console.log
Error Log (Desktop only)
Log of multiple attempts - it seems like it doesn’t show the full Error Stack - not sure if I need to enable that somewhere? I guess it is in the console log attached above
[2021-07-17 19:27:24.025] [info] { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-07-17 19:27:24.258] [info] Saving backups to C:\Users\XXXX\AppData\Roaming\superProductivity/backups
[2021-07-17 19:27:25.458] [info] No custom styles detected at C:\Users\XXXX\AppData\Roaming\superProductivity/styles.css
[2021-07-17 19:28:13.949] [error] Frontend Error: { HANDLED_ERROR_PROP: 'GD File creation: Token creation failed' } undefined
[2021-07-17 19:28:13.954] [error] Frontend Error Stack:
[2021-07-17 19:28:54.235] [info] close, isQuiting: undefined
[2021-07-17 19:28:54.238] [info] close, isQuiting: true
[2021-07-17 19:28:54.273] [info] Quit after all windows being closed
[2021-07-17 19:29:14.496] [info] { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-07-17 19:29:14.676] [info] Saving backups to C:\Users\XXXX\AppData\Roaming\superProductivity/backups
[2021-07-17 19:29:15.419] [info] No custom styles detected at C:\Users\XXXX\AppData\Roaming\superProductivity/styles.css
[2021-07-17 19:36:14.860] [error] Frontend Error: { HANDLED_ERROR_PROP: 'GD File creation: Token creation failed' } undefined
[2021-07-17 19:36:14.863] [error] Frontend Error Stack:
[2021-07-17 19:36:51.252] [error] Frontend Error: { HANDLED_ERROR_PROP: 'GD File creation: Token creation failed' } undefined
[2021-07-17 19:36:51.257] [error] Frontend Error Stack:
[2021-07-17 19:37:00.748] [info] close, isQuiting: undefined
[2021-07-17 19:37:00.765] [info] close, isQuiting: true
[2021-07-17 19:37:00.802] [info] Quit after all windows being closed
[2021-07-17 19:41:05.391] [info] { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-07-17 19:41:05.634] [info] Saving backups to C:\Users\XXXX\AppData\Roaming\superProductivity/backups
[2021-07-17 19:41:06.418] [info] No custom styles detected at C:\Users\XXXX\AppData\Roaming\superProductivity/styles.css
[2021-07-17 19:41:34.831] [error] Frontend Error: { HANDLED_ERROR_PROP: 'GD File creation: Token creation failed' } undefined
[2021-07-17 19:41:34.836] [error] Frontend Error Stack:
[2021-07-17 19:43:58.886] [error] Frontend Error: { HANDLED_ERROR_PROP: 'GD File creation: Token creation failed' } undefined
[2021-07-17 19:43:58.888] [error] Frontend Error Stack:
[2021-07-17 19:44:15.471] [info] close, isQuiting: undefined
[2021-07-17 19:44:15.472] [info] close, isQuiting: true
[2021-07-17 19:44:15.504] [info] Quit after all windows being closed
[2021-07-17 19:45:13.316] [info] { enabled: null, showDevTools: false, mode: 'bottom' }
[2021-07-17 19:45:13.496] [info] Saving backups to C:\Users\XXXX\AppData\Roaming\superProductivity/backups
[2021-07-17 19:45:14.253] [info] No custom styles detected at C:\Users\XXXX\AppData\Roaming\superProductivity/styles.css
[2021-07-17 19:45:55.681] [error] Frontend Error: { HANDLED_ERROR_PROP: 'GD File creation: Token creation failed' } undefined
[2021-07-17 19:45:55.686] [error] Frontend Error Stack:
[2021-07-17 19:46:01.632] [info] close, isQuiting: undefined
[2021-07-17 19:46:01.646] [info] close, isQuiting: true
[2021-07-17 19:46:01.686] [info] Quit after all windows being closed
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 3
- Comments: 17 (6 by maintainers)
Commits related to this issue
- fix(sync): missing code_challenge_method for google sync #1394 — committed to johannesjo/super-productivity by johannesjo 3 years ago
I think I found the issue, which is a missing parameter for the pkce code challenge. Will provide a new patch release soon. Please let me know if the issue persists despite the fix.
Thanks everybody!
Thank you very much for digging into this and the detailed error report. Much appreciated!
I try to look into it as soon as I can.