Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when adding a task while offline #106

Open
TheIronBorn opened this issue Feb 21, 2017 · 3 comments
Open

Error when adding a task while offline #106

TheIronBorn opened this issue Feb 21, 2017 · 3 comments
Labels

Comments

@TheIronBorn
Copy link

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
@wayneashleyberry
Copy link
Owner

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

@Thor77 Thor77 added the bug label Feb 22, 2017
@Thor77 Thor77 added feature and removed bug labels Oct 11, 2017
@alexandrebarbaruiva
Copy link
Contributor

alexandrebarbaruiva commented Feb 22, 2018

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants