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

redis-audit.rb:150:in group_key': undefined method codepoints' for "UserRingWork": #47

Open
ElvisLiu85 opened this issue Jan 5, 2016 · 5 comments

Comments

@ElvisLiu85
Copy link

I use git clone redis-audit
And install it by bundle
When I try to run it, error print out as follows:

[root@localhost script]# bundle exec ruby redis-audit.rb 127.0.0.1 6379 0 1000
Auditing 127.0.0.1:6379 dbnum:0 sampling 1000 keys
Getting a list of all 98 keys...
Auditing 98 keys...
redis-audit.rb:150:in group_key': undefined methodcodepoints' for "UserRingWork":String (NoMethodError)
from redis-audit.rb:130:in audit_key' from redis-audit.rb:111:inaudit_keys'
from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:51:in each_with_index' from redis-audit.rb:110:ineach'
from redis-audit.rb:110:in each_with_index' from redis-audit.rb:110:inaudit_keys'
from redis-audit.rb:348

@postor
Copy link

postor commented Jan 21, 2016

i got same problem too

@patademahesh
Copy link

same problem..

Auditing 172.29.18.129:6379 dbnum:0 sampling 0 keys
Sampling 206747 keys...
./redis-audit.rb:158:in `block (2 levels) in group_key': undefined method `[]' for #<Enumerator: "Dheerajj-port":codepoints> (NoMethodError)
        from ./redis-audit.rb:156:in `each_codepoint'
        from ./redis-audit.rb:156:in `with_index'
        from ./redis-audit.rb:156:in `block in group_key'
        from ./redis-audit.rb:152:in `each'
        from ./redis-audit.rb:152:in `group_key'
        from ./redis-audit.rb:130:in `audit_key'
        from ./redis-audit.rb:99:in `block in audit_keys'
        from ./redis-audit.rb:97:in `times'
        from ./redis-audit.rb:97:in `audit_keys'
        from ./redis-audit.rb:358:in `<main>'

@eXcellme
Copy link

eXcellme commented Aug 3, 2016

same problem...

Auditing 192.168.x.x:6380 dbnum:0 sampling 0 keys
Sampling 1083 keys...
redis-audit.rb:150:in group_key': undefined methodcodepoints' for "some_key":String (NoMethodError)
from redis-audit.rb:130:in audit_key' from redis-audit.rb:99:inaudit_keys'
from redis-audit.rb:97:in times' from redis-audit.rb:97:inaudit_keys'
from redis-audit.rb:358

@larry2208
Copy link

the same ..
Auditing 127.0.0.1:6379 dbnum:0 sampling 0 keys
Sampling 14631 keys...
bundler: failed to load command: redis-audit.rb (redis-audit.rb)
NoMethodError: undefined method codepoints' for "id:api.o:":String ./redis-audit.rb:150:ingroup_key'
./redis-audit.rb:130:in audit_key' ./redis-audit.rb:99:inaudit_keys'
./redis-audit.rb:97:in times' ./redis-audit.rb:97:inaudit_keys'
./redis-audit.rb:358

@zqli
Copy link

zqli commented Jun 17, 2017

i got same problem too

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

No branches or pull requests

6 participants