Bug? Google_Service_Exception while retrieving list of files
-
Love your product, thank you!
I am up-to-date with WordPress and all plugin updates. I am also running on Windows. I configured my Google Drive on Remote Storage tab. When I try to backup to my Google Drive, I get the following error….
[2020-02-26 08:04:04][error]An exception has occurred. class:Google_Service_Exception;msg:{
“error”: {
“errors”: [
{
“domain”: “global”,
“reason”: “invalid”,
“message”: “Invalid Value”,
“locationType”: “parameter”,
“location”: “q”
}
],
“code”: 400,
“message”: “Invalid Value”
}
}I believe I tracked down the issue to class-wpvivid-google-drive.php:926
$delete_files = $service->files->listFiles(array( 'q' => "name='".$file."' and '".$folder_id."' in parents", 'fields' => 'nextPageToken, files(id, name,mimeType)', ));
My
$file
value at runtime isC:\www\my_site\public_html/wp-content\wpvividbackups\localhost_wpvivid-5e56e48ed2b93_2020-02-26-21-35_backup_all.zip
. Going off the Google’s messsage that it does not like theq
parameter value, I update the code to set the name to the basename and it worked; i.e. name=basename($file)
. Not sure if this is the proper fix. Please advise.Thanks!
- The topic ‘Bug? Google_Service_Exception while retrieving list of files’ is closed to new replies.