-
Notifications
You must be signed in to change notification settings - Fork 99
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 executing nodejs(0.12.4) with koa #16
Comments
Thanks for the report @rohitgup14. That's weird. @deontologician any ideas? |
This tutorial is pretty out of date, it has a RethinkDB 1.12 driver dependency. It's possible more recent versions have fixed this bug. It seems not to be checking if options is null, which would come up all the time. |
Same error here running on node v4. The todo-angular-express-promise app gives this error Updated todo-angular-express will continue to work when updated to the latest driver. The -promise version will also start to work when updated to the latest 2.1 driver. However, it needs some work as creating the new todos results in empty line items until the page is refreshed. I'll stop back later to investigate. |
Thanks for letting us know @samkelleher. @deontologician About the original issue: Do you think we could just bump the angular/koa example to using the latest driver? |
I've bumped it and made it unbounded (not advised in general, but this is for a tutorial). I think longterm we should integrate these tutorials into our test-suite for new releases or deprecate them |
@deontologician Fair enough. Did you check that the code actually works with the new driver (in case we changed the syntax or name of some command)? |
Nope, I just bumped it up. @samkelleher's comment suggests that it doesn't actually work, but since it didn't work anyway, the situation isn't really worse... |
$ node --harmony app.js
//rethinkdb-example-nodejs/todo-angular-koa/node_modules/rethinkdb/ast.js:127
if (!options.noreply && typeof callback !== 'function') {
^
TypeError: Cannot read property 'noreply' of undefined
at IndexWait.TermBase.run (//rethinkdb-example-nodejs/todo-angular-koa/node_modules/rethinkdb/ast.js:127:17)
at //rethinkdb-example-nodejs/todo-angular-koa/app.js:128:45
at TcpConnection. (//rethinkdb-example-nodejs/todo-angular-koa/node_modules/rethinkdb/net.js:78:16)
at TcpConnection.g (events.js:199:16)
at TcpConnection.emit (events.js:104:17)
at Socket.handshake_callback (//rethinkdb-example-nodejs/todo-angular-koa/node_modules/rethinkdb/net.js:459:23)
at Socket.emit (events.js:107:17)
at readableAddChunk (_stream_readable.js:163:16)
at Socket.Readable.push (_stream_readable.js:126:10)
at TCP.onread (net.js:538:20)
The text was updated successfully, but these errors were encountered: