swiftyapp / swifty

πŸ”‘ Free Offline-first Password Manager
https://getswifty.pro
GNU General Public License v3.0
906 stars 82 forks source link

Google Drive Sync issue while the connection #186

Open chadiso opened 12 months ago

chadiso commented 12 months ago

Describe the bug Hey, getting this error while Syncing with Google Drive, on a fresh Mac OS Sonoma set up: Unhandled Promise Rejection Error: Sync is not configured at Sr.perform (/Applications/Swifty.app/Contents/Resources/app.asar/main/index.js:2:8103263) at vault:sync:connect (/Applications/Swifty.app/Contents/Resources/app.asar/main/index.js:2:8107235) at IpcMainImpl.<anonymous> (/Applications/Swifty.app/Contents/Resources/app.asar/main/index.js:2:8110701) at IpcMainImpl.emit (node:events:513:28) at EventEmitter.<anonymous> (node:electron/js2c/browser_init:2:80713) at EventEmitter.emit (node:events:513:28)

To Reproduce Steps to reproduce the behavior:

  1. Download new build, install Swifty
  2. Login, goto Settings
  3. Hit Synchronize / Connect your Google Drive
  4. Get the above error

Expected behavior Can smoothly set up Google Drive sync feature

Screenshots If applicable, add screenshots to help explain your problem.

image

Desktop (please complete the following information):

Additional context I have everything well set up on my 2nd machine, so actually wanted to migrate Swifty and use it on the new one

Thanks in advance! You're doing a great tool! I'm using it on my daily basis, love it! πŸ™Œ

chadiso commented 11 months ago

Hey, any change to fix this? I can't synchronize with my laptops :(

alchaplinsky commented 10 months ago

Hey @chadiso, This seems like an issue with GDrive credentials file that Swifty stores on your machine. Could you try deleting it by rm ~/Library/Application\ Support/Swifty/auth/gdrive.swftx

and re-connect google drive in settings?

chadiso commented 10 months ago

Thanks for the response, @alchaplinsky! I did try, deleted that file, and restarted Swifty. However, it pops the same error: Unhandled Promise Rejection Error: Sync is not configured at Sr.perform (/Applications/Swifty.app/Contents/Resources/app.asar/main/index.js:2:8103263) at vault:sync:connect (/Applications/Swifty.app/Contents/Resources/app.asar/main/index.js:2:8107235) at IpcMainImpl.<anonymous> (/Applications/Swifty.app/Contents/Resources/app.asar/main/index.js:2:8110701) at IpcMainImpl.emit (node:events:513:28) at EventEmitter.<anonymous> (node:electron/js2c/browser_init:2:80713) at EventEmitter.emit (node:events:513:28)

Suhas1104 commented 4 months ago

I did fix this and raised a PR for this issue @alchaplinsky @chadiso, basically it wouldnt authenticate on clicking connect to google drive and it would throw this error.

chadiso commented 4 months ago

@Suhas1104 Wow, that's just great! @alchaplinsky Could you please have a look? Thanks! πŸ™Œ