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

Error: #\- is not of type INTEGER. #15

Closed
tuscland opened this issue Dec 13, 2013 · 4 comments
Closed

Error: #\- is not of type INTEGER. #15

tuscland opened this issue Dec 13, 2013 · 4 comments

Comments

@tuscland
Copy link
Contributor

When using CL-REDIS with LispWorks 6.1.1:

CL-USER 116 > (redis:connect :host "random-host" :port 1234
#<REDIS:REDIS-CONNECTION 4020000B6B>

CL-USER 117 > (red:ping)

Error: #\- is not of type INTEGER.
  1 (abort) Return to level 0.
  2 Return to top loop level 0.

In REDIS::OPEN-CONNECTION, I left the :element-type 'flex:octet argument commented, which seems to fix the problem. I don't know if that is the correct fix and if it doesn't break anything on other platforms.

@vseloved
Copy link
Owner

You need to supply IP address to connect. Like #(127 0 0 1).
Or, alternatively, (usocket::get-host-by-name "random-host").

I agree, that it's convenient to automatically resolve hosts on connect, although it's a hidden inefficiency. Feel free to submit a pull request...

@tuscland
Copy link
Contributor Author

No, problem is how the stream is configured.
The :element-type parameter does not do good to LispWorks.

@vseloved
Copy link
Owner

Oh, I see, sorry haven't read to the end. :(

It's strange that :element-type doesn't work on LispWorks (because I see similar code in hunchentoot). To be fair, I've never supported it, because its a hassle to get a proper distribution. If it works without element-type you can add a #-lispworks :element-type #-lispworks 'flex:octet there. Once again, feel free to submit a pull request.

@tuscland
Copy link
Contributor Author

Thanks, see #16

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

2 participants