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

destructure error with airbnb.getOwnListings() #28

Open
pbvillaflores opened this issue Jul 12, 2019 · 0 comments
Open

destructure error with airbnb.getOwnListings() #28

pbvillaflores opened this issue Jul 12, 2019 · 0 comments

Comments

@pbvillaflores
Copy link

pbvillaflores commented Jul 12, 2019

I am getting the following destructure error on getOwnListings method

var ol = airbnb.getOwnListings().then( v => { console.log(v) } ) .catch( e => { console.log(e) } )
undefined
TypeError: Cannot destructure property token of 'undefined' or 'null'.
at AirApi.getOwnListings (C:\mynode\node_modules\airbnbapijs\build\main.js:415:25)
at repl:1:17
at Script.runInThisContext (vm.js:122:20)
at REPLServer.defaultEval (repl.js:332:29)
at bound (domain.js:402:14)
at REPLServer.runBound [as eval] (domain.js:415:12)
at REPLServer.onLine (repl.js:642:10)
at REPLServer.emit (events.js:203:15)
at REPLServer.EventEmitter.emit (domain.js:448:20)
at REPLServer.Interface._onLine (readline.js:308:10)
at REPLServer.Interface._line (readline.js:656:8)
at REPLServer.Interface._ttyWrite (readline.js:937:14)
at REPLServer.self._ttyWrite (repl.js:715:7)
at ReadStream.onkeypress (readline.js:184:10)
at ReadStream.emit (events.js:198:13)
at ReadStream.EventEmitter.emit (domain.js:448:20)
at emitKeys (internal/readline.js:424:14)
at emitKeys.next ()
at ReadStream.onData (readline.js:1075:36)
at ReadStream.emit (events.js:198:13)
at ReadStream.EventEmitter.emit (domain.js:448:20)
at addChunk (_stream_readable.js:288:12)

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

No branches or pull requests

1 participant