jrupac / tasky

A command-line desktop client for Google Tasks.
GNU General Public License v3.0
114 stars 33 forks source link

Deleting list gives back 400 error #20

Open jrupac opened 9 years ago

jrupac commented 9 years ago

The following error is returned:

$ ./tasky.py -d --tasklist 0 -s
This will delete the list "To-Dos" and all its contents permanently. Are you sure? (y/n): y
Traceback (most recent call last):
  File "./tasky.py", line 525, in <module>
    main(sys.argv)
  File "./tasky.py", line 508, in main
    tasky.HandleInputArgs()
  File "./tasky.py", line 404, in HandleInputArgs
    self.service.tasklists().delete(tasklist=taskListId).execute()
  File "/Library/Python/2.7/site-packages/oauth2client/util.py", line 132, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/googleapiclient/http.py", line 723, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: <HttpError 400 when requesting https://www.googleapis.com/tasks/v1/users/@me/lists/<LIST>?key=<KEY> returned "Invalid Value">

<LIST> and <KEY> are redacted from above.

jrupac commented 9 years ago

Trying to delete this via Gmail gives the error: "Your default list cannot be deleted." Maybe Tasky should handle this?