bcedu / VGrive

Google Drive client for linux
GNU General Public License v3.0
314 stars 33 forks source link

All my files are htmls #103

Open jendrzej opened 3 years ago

jendrzej commented 3 years ago

Hello! I have issues with app. After sync i noticed that all my files are 1,1KB size. When I open any file in text editor it looks like that:

<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style="text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%"><div style="border-bottom: 1px solid #dfdfdf;">Sorry...</div></td></tr></table></div><div style="margin-left: 4em;"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style="margin-left: 4em;">See <a href="https://support.google.com/websearch/answer/86640">Google Help</a> for more information.<br/><br/></div><div style="text-align: center; border-top: 1px solid #dfdfdf;"><a href="https://www.google.com">Google Home</a></div></body></html>

I tried to switch folder to make sync once again, but result was the same. In the next step i tried to run app through terminal, and there I got error

(com.github.bcedu.vgrive:26660): CRITICAL **: 19:08:09.390: app_views_app_view_get_id: assertion 'self != NULL' failed LOG: Start syncing files on /home/mateusz/vgrive2 (com.github.bcedu.vgrive:26660): libsoup-WARNING **: 19:08:09.737: (soup-message.c:1040):soup_message_set_request: runtime check failed: (strchr (content_type, '/') != NULL) Authentication error. Refreshing token. Request: POST https://www.googleapis.com/oauth2/v4/token?refresh_token=there_was_refresh_token&client_id=there_was_client_id&client_secret=there_was_client_secret Retrying request: GET https://www.googleapis.com/drive/v3/files?access_token=there_was_access_token&q=trashed+=+False+and+name+=+there_was_filename+and+%27root%27+in+parents (I've cut tokens)

and then a lot of errors like: (com.github.bcedu.vgrive:26660): Json-CRITICAL **: 19:08:10.126: json_object_get_string_member: assertion 'node != NULL' failed

durbank commented 3 years ago

I'm experiencing the same issue where any files I pull from Google Drive onto my local machine are .html files, all 1.1 KB in size. Pushing from the local machine to the cloud works as expected though. I am also using VGrive v1.3.0 from the AppCenter but I am on elementary OS 5.1.7 Hera

soredake commented 3 years ago

Can you try with flatpak version that is newer? https://flathub.org/apps/details/com.github.bcedu.vgrive

jendrzej commented 3 years ago

Just updated to 1.6.0 and it seems to work correctly. Anyway why version in AppCenter is that old?