Skip to content
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

Strange ERR value is not a valid float message #700

Closed
twappworld opened this issue Jan 1, 2015 · 7 comments
Closed

Strange ERR value is not a valid float message #700

twappworld opened this issue Jan 1, 2015 · 7 comments
Labels

Comments

@twappworld
Copy link

Using NodeJS and Redis (promisified via BlueBird).

Getting inconsistent error:

Possibly unhandled Error: ERR value is not a valid float
at ReplyParser.RedisClient.init_parser (/home/adam/Deep-Ads/node_modules/redis/index.js:317:31)

Any ideas?

@mranney
Copy link
Contributor

mranney commented Jan 6, 2015

Do you have any way to reproduce this?

If you can afford it in production, a useful thing to do is run with debug_mode set. This will log all of the raw protocol data in and out of the client. If we knew what data was being read right before this error, it'd be pretty straightforward to fix.

@drwicked
Copy link

I'm having this issue too. What did you find you?

@d73b04b0e696b0945283defa3eee4538

Check zadd statements. KEY,SCORE,VALUE.
You must have swapped score and value

@BridgeAR
Copy link
Contributor

@twappworld did the comment from @ganeshnaidu help you?

@mitchellporter
Copy link

mitchellporter commented Sep 19, 2016

Just in case anyone finds this issue and was having the same problem I was...

I was combining multiple values to get my score before setting it and one of my values was NaN which was causing this error. After fixing the NaN the problem went away.

@douglaskruger
Copy link

Using the 'c' hiredis infrastructure, I get an error - but using the redis-cli with the same string - it returns fine.

redis-cli:
127.0.0.1:6379> ZADD modbus-alarm:0 0 1548650706:"Low Voltage Alarm at 7.11"
(integer) 1

However, the following string issued to the redisCommand function seems to error out and not insert the data... I have tried both single quotes and escaped double quotes when I built the string for the redisCommand.

ZADD modbus-alarm:0 0 1548650706:"Low Voltage Alarm at 7.11"
Redis Message:ERR value is not a valid float Type:6

Thoughts?

@pratikjoshibyjus
Copy link

Check zadd statements. KEY,SCORE,VALUE.
You must have swapped score and value

@fa1d87bc7f85769ea9dee2e4957321ae what is wrong in zadd queues:checkin:reserved process_id 1 Still I get the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants