Coder Social home page Coder Social logo

Comments (7)

wayneashleyberry avatar wayneashleyberry commented on June 14, 2024

Hi @i0rek, it looks like an authentication error, have you set up your .wunderlinerc file?

from wunderline.

hanshasselberg avatar hanshasselberg commented on June 14, 2024

@wayneashleyberry yes.

cat ~/.wunderlinerc
{
  "client_id": "..........................",
  "access_token": "..............................."
}

from wunderline.

wayneashleyberry avatar wayneashleyberry commented on June 14, 2024

Just pushed a potential fix, would you mind installing 3.2.2?

from wunderline.

hanshasselberg avatar hanshasselberg commented on June 14, 2024

Thank you for the fast help! That doesn't fix my issue though:

$ wunderline --version
3.2.2
$ wunderline inbox
/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22
    var lists = body.filter(function (item) {
                     ^
TypeError: undefined is not a function
    at Request._callback (/usr/local/lib/node_modules/wunderline/util/get-inbox.js:22:22)
    at Request.self.callback (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:197:22)
    at Request.emit (events.js:110:17)
    at Request.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:1050:14)
    at Request.emit (events.js:129:20)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/wunderline/node_modules/request/request.js:996:12)
    at IncomingMessage.emit (events.js:129:20)
    at _stream_readable.js:908:16
    at process._tickCallback (node.js:355:11)

from wunderline.

wayneashleyberry avatar wayneashleyberry commented on June 14, 2024

Strange... okay, i've added some extra debugging in 3.2.3

If you could run NODE_DEBUG=request wunderline inbox and add the debugging output here that would really help :)

Looks like, for some reason, the API call to /lists is returning an empty body...

from wunderline.

hanshasselberg avatar hanshasselberg commented on June 14, 2024

With debugging enabled I saw that I was unauthorised. I used the client_secret as access_token. Generating an access token fixed it.
Thanks!

from wunderline.

wayneashleyberry avatar wayneashleyberry commented on June 14, 2024

Oh cool - yeah, I need to add better error messages for that, will add it to my todo list :p

from wunderline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.