wunderline
wunderline copied to clipboard
Error when adding a task while offline
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 although offline support would be a great feature to have, for now this is definitely a UX feature. Thanks for pointing it out.
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 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.