Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when exporting files with ' in filename #11

Closed
Lykos153 opened this issue Mar 16, 2018 · 0 comments
Closed

Error when exporting files with ' in filename #11

Lykos153 opened this issue Mar 16, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@Lykos153
Copy link
Owner

 Traceback (most recent call last):
   File "/home/silvio/git/git-annex-remote-googledrive/git-annex-remote-googledrive", line 195, in checkpresentexport
     file_ = self._getfile(fileinfo['filename'], parent=parent)
   File "/home/silvio/git/git-annex-remote-googledrive/git-annex-remote-googledrive", line 252, in _getfile
     file_list = self.drive.ListFile({'q': "'{parent_id}' in parents and title='{filename}' and trashed=false".format(parent_id=parent['id'], filename=filename)}).GetList()
   File "/usr/lib/python3.6/site-packages/pydrive/apiattr.py", line 162, in GetList
     for x in self:
   File "/usr/lib/python3.6/site-packages/pydrive/apiattr.py", line 146, in __next__
     result = self._GetList()
   File "/usr/lib/python3.6/site-packages/pydrive/auth.py", line 75, in _decorated
    return decoratee(self, *args, **kwargs)
   File "/usr/lib/python3.6/site-packages/pydrive/files.py", line 64, in _GetList
     http=self.http)
   File "/usr/lib/python3.6/site-packages/oauth2client/_helpers.py", line 133, in positional_wrapper
     return wrapped(*args, **kwargs)
   File "/usr/lib/python3.6/site-packages/googleapiclient/http.py", line 844, in execute
     raise HttpError(resp, content, uri=self.uri)
 googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/drive/v2/files?q=%271xiHZEDjnLIZuDU_VYItpu-cm99HL35-S%27+in+parents+and+title%3D%27If+I+ain%27t+got+you.mp3%27+and+tra
shed%3Dfalse&maxResults=1000&alt=json returned "Invalid query">
@Lykos153 Lykos153 added the bug Something isn't working label Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant