buttercup / buttercup-mobile

:iphone: React-Native mobile application for Buttercup
https://buttercup.pw
GNU General Public License v3.0
392 stars 70 forks source link

Unable to add or create a vault that is stored in Google Drive., #253

Closed dutchtux3000 closed 2 years ago

dutchtux3000 commented 3 years ago

Describe the issue you're having Trying to add existing vault that is stored in Google Drive.

What were you doing when the issue occurred? How do we reproduce it? Adding a Vault that is stored on a Google Drive Account.

What OS version are you using Android 10 and 11

What device are you using OnePlust 5t with Android 10 OnePlus 8t with Android 11.


After downloading the latest master branch and doing the same actions I got the following warnings in the developer console. I hope this will help.

When authentication with google is completed. Warning: The provided value 'auto' is not a valid 'responseType'.

reactConsoleErrorHandler @ ExceptionsManager.js:126
console.error @ YellowBox.js:63
printWarning @ warning.js:30
warning @ warning.js:51
set @ XMLHttpRequest.js:182
__request @ request.js:219
tryCallTwo @ core.js:45
doResolve @ core.js:200
Promise @ core.js:66
request @ request.js:176
__executeSequence @ functions.js:10
execute @ index.js:95
getDirectoryContents @ directoryContents.js:89
mapDirectoryContents @ directoryContents.js:131
mapDirectoryContents @ index.js:80
getDirectoryContents @ remote.js:59
testRemoteFSConnection @ remote.js:36
getGoogleDriveConnection @ remote.js:13
createRemoteConnection @ explorerConnection.js:99
handleConnectionCreation$ @ RemoteConnectPage.js:51

This also happening when I tap Connect. Warning: The provided value 'auto' is not a valid 'responseType'.

reactConsoleErrorHandler @ ExceptionsManager.js:126
console.error @ YellowBox.js:63
printWarning @ warning.js:30
warning @ warning.js:51
set @ XMLHttpRequest.js:182
__request @ request.js:219
tryCallTwo @ core.js:45
doResolve @ core.js:200
Promise @ core.js:66
request @ request.js:176
__executeSequence @ functions.js:10
execute @ index.js:95
getDirectoryContents @ directoryContents.js:89
mapDirectoryContents @ directoryContents.js:131
mapDirectoryContents @ index.js:80
getDirectoryContents @ remote.js:59
testRemoteFSConnection @ remote.js:36
getGoogleDriveConnection @ remote.js:13
createRemoteConnection @ explorerConnection.js:99
handleConnectionCreation$ @ RemoteConnectPage.js:51
perry-mitchell commented 3 years ago

Warning: The provided value 'auto' is not a valid 'responseType'

These are non-errors, which will be fixed soon. They're basically ignored though, and not the cause of your issue.

What exactly happens when you try adding a vault? Any errors? Crashes?

dutchtux3000 commented 3 years ago

I am not able to select a vault from the file list. I am just getting a empty list. Even waiting for a couple of minutes.

dutchtux3000 commented 3 years ago

After looking around I was able to see the network traffic and see. That I am not getting any results back. I am getting the following response back: { "files": [] } Edit: If i run the same query in the Google API Explorer I am getting results back.

bluezod commented 3 years ago

I have encountered the same issue in iOS 14. File/folder list was empty after authorizing Google Drive

perry-mitchell commented 3 years ago

Any such bug or issue would be present in our googledrive-client library, in case someone has the time to investigate further before we do. I haven't yet seen any issue myself and can connect to my Google Drive just fine.

@bluezod Any special circumstances with your Google Drive account? Are the files owned by yourself and not shared/mounted?

cyrilnaimi commented 2 years ago

Hi, I got the same bug on IpadOS14 (will try with Ipados15 later)

I have my vaults on google drive (in a folder). When I authenticate buttercup on iPad to the drive everything "seems" working but when need to connect my vault the drive files / folder list is empty.

My vaults are working fine on android and Mac OS of course.

If I try to save a new vault on my drive it fail : "failed unlocking source: failed saving google drive vault. request failed: request failed: 404 undefined: not found."

Can I help to debug this ? how ? thanks a lot for the support

perry-mitchell commented 2 years ago

Please try the new 2.2.0 app version if you're still using Buttercup - it has a new permissions checkbox for Google permissions. Consider granting full permissions so you can view all files, and let me know if that fixes the problem. Would appreciate the feedback 🙏

danitt commented 2 years ago

I am not able to select a vault from the file list. I am just getting a empty list. Even waiting for a couple of minutes.

@dutchtux3000 can confirm the latest update fixes the issue on my android 🚀

at the risk of spamming your inbox - thanks @perry-mitchell, love your work!