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
TypeError: Cannot assign to read only property 'callback' of decr #1094
Comments
Just noticed it in the logs that db.get() calls also throw a similar error sometimes:
Code:
Also, the 'online' and 'triviaAnswer' fields are already set, and the code above works until.. Well until it doesn't. It's not "new" code either, it's been working on a different server for weeks now, so I doubt there's a problem with that. |
This seems to be a issue with newrelic, so I recommend to contact them about this. I'm sorry that I can't help you any more, as I do not use newrelic on my own. |
That was it, thank you. |
@Alchemystic would you mind going into detail about the fix? I've found this locally too with NR, but upgrading to 2.6.2 (from 2.6.0-1) seemed to fix it for me, so want to make sure that's not just a red herring. |
I just stopped using newrelic. I only got it to diagnose a network issue, but after finding out it was causing problems I removed it. |
I just hit this problem with However, using redis 2.6.2 and newrelic 1.28.3 works fine. |
I keep getting this error while trying to decrement a simple online counter in redis:
The code is:
I can't seem to replicate it, but it only happens when lots of people are on the site. When it's only me and a couple of friends testing it it seems to do the job just fine incrementing and decrementing the value.
By the way it happens even without the callback function (just db.decr('online')), I only added the callback to see if it would throw any errors.
I repeat, the code works fine until more people start using it. Maybe it's trying to do .decr at the same time and it can't handle that or?
The text was updated successfully, but these errors were encountered: