We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const oebb = require('oebb-api'); oebb.searchStationsNew("Wien").then(console.log);
gives me an
Promise { <pending>, domain: Domain { domain: null, _events: { error: [Function: debugDomainError] }, _eventsCount: 1, _maxListeners: undefined, members: [] } } > TypeError: Cannot read property '0' of undefined at Request.request [as _callback] (/home/lukas/projects/train_informer/node_modules/oebb-api/oebb.js:161:93) at Request.self.callback (/home/lukas/projects/train_informer/node_modules/request/request.js:186:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (/home/lukas/projects/train_informer/node_modules/request/request.js:1163:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7)
Package-Version: 2.0.3 Node-Version: 8.9.4
Any ideas?
Best regards, Lukas
The text was updated successfully, but these errors were encountered:
Same problem here.
I recognized that there is no set-cookie header attribute in the response anymore. Just made a test modification, and it works.
Change this line
oebb-api/oebb.js
Line 158 in c13e465
resolve(merge(body, {cookie: cookie.parse(response.headers.accesstoken)}));
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
gives me an
Package-Version: 2.0.3
Node-Version: 8.9.4
Any ideas?
Best regards,
Lukas
The text was updated successfully, but these errors were encountered: