Skip to content

getting parse error  #15

Open
Open
@ralyodio

Description

function* create(next) {
    try{
        // Parse the POST data
        var todo = yield parse(this); //this throws an error

https://github.com/rethinkdb/rethinkdb-example-nodejs/blob/master/todo-angular-koa/app.js#L64
This example throws an error for me.

screenshot 2015-05-21 03 29 55

I tried yield parse.json(this) and still not sure what the deal is. Same message.

Typically this means its not an object...but a string, and it indeed looks like JSON.stringify was ran on it.

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions