kusold / todoist-habitrpg

One way sync from Todoist -> HabitRPG
120 stars 14 forks source link

Attribute labels not syncing #52

Open ajfclark opened 8 years ago

ajfclark commented 8 years ago

I went through and tagged all my tasks in todoist as per Assigning Attribute Labels in the README:

All tasks created in Habitica were still tagged Strength. Even deleted all tasks in Habitica and removed the sync history file to recreate everything. Still no attributes set.

Tried renaming labels in Todoist and now all syncs crash: /usr/local/lib/node_modules/todoist-habitrpg/node_modules/habitrpg-api/lib/apiv3.js:189 if(apiVersion === 'v2' && res.body) { ^ TypeError: Cannot read property 'body' of undefined at formatResponse (/usr/local/lib/node_modules/todoist-habitrpg/node_modules/habitrpg-api/lib/apiv3.js:189:32) at /usr/local/lib/node_modules/todoist-habitrpg/node_modules/habitrpg-api/lib/apiv3.js:61:7 at Request.callback (/usr/local/lib/node_modules/todoist-habitrpg/node_modules/habitrpg-api/node_modules/superagent/lib/node/index.js:660:30) at ClientRequest.<anonymous> (/usr/local/lib/node_modules/todoist-habitrpg/node_modules/habitrpg-api/node_modules/superagent/lib/node/index.js:628:10) at ClientRequest.emit (events.js:95:17) at CleartextStream.socketErrorListener (http.js:1547:9) at CleartextStream.emit (events.js:95:17) at Socket.onerror (tls.js:1440:17) at Socket.emit (events.js:117:20) at net.js:440:14