nicolasff / webdis

A Redis HTTP interface with JSON output
https://webd.is
BSD 2-Clause "Simplified" License
2.82k stars 305 forks source link

ERR Operation against a key holding the wrong kind of value #64

Closed bryanrasmussen closed 11 years ago

bryanrasmussen commented 11 years ago

I do curl http://127.0.0.1:7379/TYPE/resque:queue:classify {"TYPE":[true,"list"]}

And I do

curl http://127.0.0.1:7379/GET/resque:queue:classify {"GET":[false,"ERR Operation against a key holding the wrong kind of value"]}

How should I structure the second operation to the my value out?

Thanks!

nicolasff commented 11 years ago

Hello Bryan,

You can not run GET on lists, you can use LRANGE or BLPOP to extract the values you're interested in. See this intro on Redis data types: http://redis.io/topics/data-types-intro as well as this page: http://redis.io/topics/data-types And the commands that you can run on lists: http://redis.io/commands#list

Regards,

Nicolas

bryanrasmussen commented 11 years ago

Thanks, figured it was some simple mistake on my part.

On Thu, Jan 31, 2013 at 2:07 PM, Nicolas Favre-Felix < notifications@github.com> wrote:

Hello Bryan,

You can not run GET on lists, you can use LRANGE or BLPOP to extract the values you're interested in. See this intro on Redis data types: http://redis.io/topics/data-types-intro as well as this page: http://redis.io/topics/data-types And the commands that you can run on lists: http://redis.io/commands#list

Regards,

Nicolas

— Reply to this email directly or view it on GitHubhttps://github.com/nicolasff/webdis/issues/64#issuecomment-12941442.