wunderline icon indicating copy to clipboard operation
wunderline copied to clipboard

Error when adding a task while offline

Open TheIronBorn opened this issue 8 years ago • 3 comments

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
}
  • macOS 10.12.2
  • Wunderline --version 4.4.4

TheIronBorn avatar Feb 21 '17 23:02 TheIronBorn

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

wayneashleyberry avatar Feb 22 '17 09:02 wayneashleyberry

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?

alexandrebarbaruiva avatar Feb 22 '18 11:02 alexandrebarbaruiva

@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.

MihirSomani avatar Aug 09 '19 05:08 MihirSomani