wayneashleyberry / wunderline

✅️ Command-line client for Wunderlist, the easiest way to get stuff done.
https://git.io/vM45l
MIT License
310 stars 29 forks source link

Error when adding a task while offline #106

Open TheIronBorn opened 7 years ago

TheIronBorn commented 7 years ago

I'm unclear if Wunderline even has this feature, but in that case I suppose this is a UX issue.

$ wunderline add test-offline
{
  "code": "ENOTFOUND",
  "errno": "ENOTFOUND",
  "syscall": "getaddrinfo",
  "hostname": "a.wunderlist.com",
  "host": "a.wunderlist.com",
  "port": 443
}

and with NODE_DEBUG:

$ NODE_DEBUG=request wunderline add test-offline
REQUEST { method: 'get',
  json: true,
  baseUrl: 'https://a.wunderlist.com/api/v1',
  headers: 
   { 'X-Access-Token': '<token>',
     'X-Client-ID': '<ID>' },
  uri: '/lists',
  callback: [Function] }
REQUEST make request https://a.wunderlist.com/api/v1/lists
REQUEST response body undefined
{
  "code": "ENOTFOUND",
  "errno": "ENOTFOUND",
  "syscall": "getaddrinfo",
  "hostname": "a.wunderlist.com",
  "host": "a.wunderlist.com",
  "port": 443
}
wayneashleyberry commented 7 years ago

@TheIronBorn although offline support would be a great feature to have, for now this is definitely a UX feature. Thanks for pointing it out.

alexandrebarbaruiva commented 6 years ago

For wunderline to work, it needs access to the API, and as far as I know, you can access the API only online, so a offline mode is only possible if wunderline is using a Mac app. Or I'm totally wrong?

MihirSomani commented 4 years ago

@alexandrebarbaruiva We can add the task operations while offline in local storage, and whenever we have access to the internet again, push all the operations via the API.