-
Notifications
You must be signed in to change notification settings - Fork 102
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
calling save in get callback crash sometimes. #64
Comments
that's odd. i'll check it as soon as i can. in the meantime: which versions of riak-js and node are you using? |
Im using riak 0.14 for Mac Os ( which is very unstable I must say ), Node 0.5.0pre and riak-js 0.4.0rc2 |
I can share with you my exact code. I removed even the meta.links.push and also updating the returned "flight" ( in my case it is a display ). I get the same exact error: app.put('/displays/:displayId/playlist/:playlistId', function(req, res){ db.get('displays', displayId, function(err, display, meta) { |
+1 I've been seeing a similar behavior. The error gets thrown within Utils.mixin. |
That was really good news, since I was already implementing this directly on top of Riak's HTTP API as a workaround :). |
I tested it with the new release and the problem is solved. Good Job!! :) |
I am running an example code which is identical to the one on the webpage:
db.get('flights', 'KLM-5034', function(err, flight, meta) {
if (err) throw err
flight.status = 'delayed'
meta.links.push({ bucket: 'airlines', key: 'IBE', tag: 'operated_by' })
db.save('flights', 'KLM-5034', flight, meta)
})
But I got almost all the time the following error ( very seldom it works without error ):
/node_modules/riak-js/lib/utils.js:84
target[k] = d.value; ^
undefined
Any clues what is happening here?
thanks!.
The text was updated successfully, but these errors were encountered: