Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

"Error in readBin(con, raw(), 1000000L) : negative length vectors are not allowed" issued incorrectly #24

Open
telenskyt opened this issue Sep 21, 2014 · 1 comment
Assignees

Comments

@telenskyt
Copy link

I got this response from redisKeys

$ redisKeys("*")
Error in readBin(con, raw(), 1000000L) :
negative length vectors are not allowed

According to bwlewis/doRedis#4, this error message should be issued when exceeding the data size limit. But this is definitely not the case of redisKeys. There was probably some error around the connection, because after I connected again, I got the correct response with no error:

$ redisConnect('myserver')
$ redisKeys("*")
[1] "jobs:1.alive.1" "x" "jobs:counter" "jobs:1.start.3" "jobs:1.alive.3"
[6] "jobs" "jobs:1" "jobs:1.start.1" "jobs:workers" "jobs:1.env"

So there should probably be a different error message issued in this case.

@telenskyt
Copy link
Author

Yes, this error message appears in situation when there is a problem with server connection. I tried to stop the server and then call redisConnect, and I got the same response:

redisConnect(host = "my_server")
# Error:  Error in readBin(con, raw(), 1000000L): negative length vectors are not allowed

So probably something like "Error connecting the server 'my_server'" should be reported instead of this unreadable and confusing error message.

@bwlewis bwlewis self-assigned this Apr 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants