robinpowered/robin-js-sdk-public

Error when getting a location

Opened this issue · 0 comments

Doing a relatively simple operation:

import Robin from "robin-js-sdk";
...
robin.api.locations.get(this.robinLocationId).then(location => {
    console.log(location);
});

Results in this error in the console when running:

debuggability.js:877 Unhandled rejection TypeError: expecting an array or an iterable object but got [object Null]

Seems related to this change that bluebirdjs made. Are there plans to update? A possible fix would be just to pin the version of bluebird in package.json, but that's probably not the best solution. 😃