I run across this error time after time but it's really hard to reproduce but I can replicate exactly the same backtrace of the problem if instead of some valid http domain I choose any fake one.<br>If I run:<br>(drakma:http-request
<br> "<a href="http://some-fake-domain.com">http://some-fake-domain.com</a>"<br> :method :get<br> :parameters `(("param1" . "text")))<br><br>The backtrace will be:<br><br>The value 0<br>is not of type
<br> (OR (SINGLE-FLOAT (0.0)) (DOUBLE-FLOAT (0.0d0)) (INTEGER 1)).<br> [Condition of type TYPE-ERROR]<br><br>Restarts:<br> 0: [ABORT] Return to SLIME's top level.<br> 1: [ABORT] Exit debugger, returning to top level.
<br><br>Backtrace:<br> 0: (RANDOM 0)<br> 1: (USOCKET::GET-RANDOM-HOST-BY-NAME "<a href="http://some-fake-domain.com">some-fake-domain.com</a>")<br> 2: (USOCKET:SOCKET-CONNECT "<a href="http://some-fake-domain.com">
some-fake-domain.com</a>" 80)<br> 3: (DRAKMA:HTTP-REQUEST "<a href="http://some-fake-domain.com">http://some-fake-domain.com</a>")<br> 4: (SB-INT:SIMPLE-EVAL-IN-LEXENV<br> (DRAKMA:HTTP-REQUEST "
<a href="http://some-fake-domain.com">http://some-fake-domain.com</a>" :METHOD :GET<br> :PARAMETERS '(("param1" . "text")))<br> #<NULL-LEXENV>)<br> 5: ((LAMBDA ()))
<br><br>In my case it looks like sometimes even for the real domain it calls (RANDOM 0) which gives this log.<br>Even if the domain is wrong do you think it should throw an exception? <br>I use SBCL 1.0.5. with the latest drakma and usocket (
usocket-0.3.2).<br><br><br>Thank you,<br>Andrew<br>