I am using usocket-0.3.5 but if you give the request some fake domain it still has the same exception: The value 0 is not of type (OR (SINGLE-FLOAT (0.0)) (DOUBLE-FLOAT (0.0d0)) (INTEGER 1)). [Condition of type TYPE-ERROR]
With the new usocket-3.5 I started to get a new type of error (which happens rarely and I don't know how to reproduce it). It reads: Condition: Couldn't write to #<SB-SYS:FD-STREAM for "a constant string" {DBB0079}>: Broken pipe and it happens right after the drakma:http-request. Is it something related to the server I am trying to connect to? It may be related to drakma or usocket as I changed both of them as well as updated the dramka dependencies like chunga. It those things never happened to you, guys I am starting think that maybe hardware (linksys router or NICs) may cause some problems. Any ideas? Thank you, Andrew On Oct 12, 2007 2:37 AM, Erik Huelsmann <[EMAIL PROTECTED]> wrote: > > On 10/12/07, Andrei Stebakov <[EMAIL PROTECTED]> wrote: > > 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. > > If I run: > > (drakma:http-request > > "http://some-fake-domain.com" > > :method :get > > :parameters `(("param1" . "text"))) > > > > The backtrace will be: > > > > The value 0 > > is not of type > > (OR (SINGLE-FLOAT (0.0)) (DOUBLE-FLOAT (0.0d0)) (INTEGER 1)). > > [Condition of type TYPE-ERROR] > > > > Restarts: > > 0: [ABORT] Return to SLIME's top level. > > 1: [ABORT] Exit debugger, returning to top level. > > > > Backtrace: > > 0: (RANDOM 0) > > 1: (USOCKET::GET-RANDOM-HOST-BY-NAME > > "some-fake-domain.com") > > 2: (USOCKET:SOCKET-CONNECT " some-fake-domain.com" 80) > > 3: (DRAKMA:HTTP-REQUEST "http://some-fake-domain.com") > > 4: (SB-INT:SIMPLE-EVAL-IN-LEXENV > > (DRAKMA:HTTP-REQUEST " http://some-fake-domain.com" :METHOD :GET > > :PARAMETERS '(("param1" . "text"))) > > #<NULL-LEXENV>) > > 5: ((LAMBDA ())) > > > > In my case it looks like sometimes even for the real domain it calls (RANDOM > > 0) which gives this log. > > Even if the domain is wrong do you think it should throw an exception? > > I use SBCL 1.0.5. with the latest drakma and usocket ( usocket-0.3.2). > > I'll have a look tonight, but I think I fixed this problem in newer > usocket releases already. The newest usocket is 0.3.5. [After looking > at the list of releases at the bottom of > http://common-lisp.net/project/usocket/] I think your problem may have > been fixed in usocket 0.3.3. (But again, I'll look at it later - > tonight) > > bye, > > Erik. > > _______________________________________________ > drakma-devel mailing list > drakma-devel@common-lisp.net > http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel > _______________________________________________ drakma-devel mailing list drakma-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/drakma-devel