christopherjwhite / org-toodledo

Emacs enhancement for syncing org-mode tasks with Toodledlo
83 stars 16 forks source link

Tries to create empty tasks #22

Closed alphapapa closed 10 years ago

alphapapa commented 11 years ago

I made an empty org file and did an initialization, which seemed to complete. Subsequent syncs fail with this:

[06:09:43] [DEBUG] Examining task: 'Figure how to auto sync phone photos'
[06:09:43] [DEBUG] ...no change
[06:09:43] [DEBUG] org-toodledo-call-method: 'http://api.toodledo.com/2/tasks/add.php'
[06:09:43] [DEBUG2]
--- params:
((f . "xml") (key . "") (unix . "1") (tasks . "[{\"ref\":\"-6\", \"tag\":\"\", \"length\":null, \"note\":\"\", \"priority\":\"2\", \"goal\":\"0\", \"folder\":\"0$
--- response:
("<?xml version=\"1.0\" encoding=\"UTF-8\"?><tasks><error id='5' ref='-6'>No title</error></tasks>" "HTTP/1.1 200 OK
Date: Mon, 12 Aug 2013 11:09:43 GMT
Server: Apache/2.2.3 (Red Hat)
Content-Length: 92
Keep-Alive: timeout=2, max=100
Connection: Keep-Alive
Content-Type: application/xml
" 200)
--- parsed response:
((tasks nil (error ((id . "5") (ref . "-6")) "No title")))

---
[06:09:43] [DEBUG2] org-toodledo-find-todo-entry: "-6" nil nil t
[06:09:43] [DEBUG2] org-toodledo-find-todo-entry: nil t nil t
[06:09:43] [ERROR] Failed to add task on server, error 5 'The task's title cannot be blank', task nil: 'nil'

emacs = 24.3 org-mode = 7.9.2 org-toodledo = f6bfb40b5e840ba5beb4011053ca56667b81eff2

christopherjwhite commented 11 years ago

Did you happen to have an empty TODO entry that looked like the following?

* TODO

This will cause the error you indicated. I'll work on skipping these items.