Comments (12)
What's the value of *READ-DEFAULT-FLOAT-FORMAT*
in your environment?
from dexador.
CL-USER> READ-DEFAULT-FLOAT-FORMAT
SINGLE-FLOAT
from dexador.
I suppose that you loaded & compiled dexador with setting *READ-DEFAULT-FLOAT-FORMAT*
'double-float
.
Can you try (dex:get "http://lisp.org" :version 1.1s0)
?
from dexador.
(dex:get "http://lisp.org" :version 1.1s0)
1.1 fell through ECASE expression. Wanted one of (1.1d0 1.0d0).
[Condition of type SB-KERNEL:CASE-FAILURE]
Restarts:
0: [RETRY] Retry SLIME REPL evaluation request.
1: [*ABORT] Return to SLIME's top level.
2: [ABORT] abort thread (#<THREAD "repl-thread" RUNNING {1001E81B93}>)
Backtrace:
0: (DEXADOR.UTIL:WRITE-FIRST-LINE :GET #<QURI.URI.HTTP:URI-HTTP http://lisp.org> NIL 1.1 #S(FAST-IO:OUTPUT-BUFFER :VECTOR #(71 69 84 32 47 32 ...) :FILL 6 :LEN 6 :QUEUE NIL :LAST NIL :OUTPUT NIL))
1: (DEXADOR.BACKEND.USOCKET:REQUEST #<unavailable argument> :METHOD :GET :VERSION 1.1)
2: (SB-INT:SIMPLE-EVAL-IN-LEXENV (DEXADOR:GET "http://lisp.org" :VERSION 1.1) #<NULL-LEXENV>)
3: (EVAL (DEXADOR:GET "http://lisp.org" :VERSION 1.1))
--more--
from dexador.
I set *READ-DEFAULT-FLOAT-FORMAT* to double-float and reloaded dexador, but I got the same error.
from dexador.
Did you delete fasl caches before reloading?
from dexador.
Yes, I deleted the cache and got the same error.
from dexador.
Then, that may not because of the setting of *read-default-float-format*
, which I could reproduce.
from dexador.
Em, what shall I do next?
from dexador.
Can confirm this occurs in dockerized container running ubuntu 16.04.
; cc -o /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel-tmpIRDHF4NY.o -c -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -fno-pie -fPIC -I/root/.roswell/lisp/quicklisp/dists/quicklisp/software/cffi_0.20.1/ /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel.c
/root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel.c: In function ‘main’:
/root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel.c:12:7: warning: unused variable ‘autotype_tmp’ [-Wunused-variable]
int autotype_tmp;
^
; cc -o /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel-tmpZQGFPZZG -g -Wl,--export-dynamic -no-pie /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel.o
; /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/syscall/types__grovel.grovel-tmp.lisp
; cc -o /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel-tmpOP8PI1I.o -c -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -fno-pie -fPIC -I/root/.roswell/lisp/quicklisp/dists/quicklisp/software/cffi_0.20.1/ /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel.c
/root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel.c: In function ‘main’:
/root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel.c:14:7: warning: unused variable ‘autotype_tmp’ [-Wunused-variable]
int autotype_tmp;
^
; cc -o /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel-tmp5WHUATJM -g -Wl,--export-dynamic -no-pie /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel.o
; /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel /root/.cache/common-lisp/sbcl-1.5.6-linux-x64/root/.roswell/lisp/quicklisp/dists/quicklisp/software/woo-20190813-git/src/llsocket/grovel__grovel.grovel-tmp.lisp
Woo server is started.
Listening on 0.0.0.0:9001.
Unhandled TYPE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING
{10005104C3}>:
The value
1.1
is not of type
SINGLE-FLOAT
Calling RUN ros run -Q -s mercatus -e "(dex:get \"http://lisp.org\" :version 1.1s0)" --quit
in the docker file gives the following output:
Step 5/8 : RUN ros run -Q -s mercatus -e "(dex:get \"http://lisp.org\" :version 1.1s0)" --quit
---> Running in 276fdcfc4f4d
debugger invoked on a SB-KERNEL:CASE-FAILURE in thread
#<THREAD "main thread" RUNNING {10004F04C3}>:
1.1 fell through ECASE expression. Wanted one of (1.1d0 1.0d0).
Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.
restarts (invokable by number or by possibly-abbreviated name):
0: [CONTINUE] Ignore runtime option --eval "(ros:run '((:eval\"(ros:quicklisp)\")(:system \"mercatus\")(:eval \"(dex:get \\\"http://lisp.org\\\" :version 1.1s0)\")(:quit)))".
1: [ABORT ] Skip rest of --eval and --load options.
2: Skip to toplevel READ/EVAL/PRINT loop.
3: [EXIT ] Exit SBCL (calling #'EXIT, killing the process).
(DEXADOR.UTIL:WRITE-FIRST-LINE #<unavailable argument> #<unavailable argument> #<unavailable argument> #<unavailable argument> #<unavailable argument>)
0]
The relevant .ros files are headed with
(declaim (sb-ext:muffle-conditions cl:style-warning))
(declaim (optimize (speed 3) (space 0) (debug 0) (safety 0) (compilation-speed 0)))
(declaim (sb-ext:muffle-conditions sb-ext:compiler-note))
(eval-when (:compile-toplevel :load-toplevel :execute)
(setf sb-impl::*default-external-format* :utf-8)
(setf sb-alien::*default-c-string-external-format* :utf-8)
(setf *read-default-float-format* 'double-float))
before library loading, if that's any help.
from dexador.
@shixiongfei
This is a bad temporary workaround, but see jnc-nj/dexador@a81de22
Step 6/9 : RUN ros run -Q -s mercatus -e "(print (dex:get \"http://lisp.org\" :version 1.1))" --quit
---> Running in 270b432cee0b
"<HTML>
<HEAD>
<title>John McCarthy, 1927-2011</title>
<STYLE type=\"text/css\">
BODY {text-align: center}
</STYLE>
</HEAD>
<BODY>
<h1>John McCarthy</h1>
<img src=\"jmccolor.jpg\" alt=\"a picture of John McCarthy, from his website\"/>
<h3>1927-2011</h3>
<br><br>
<a href=\"http://www-formal.stanford.edu/jmc/\">John McCarthy's Home Page</a><br>
<a href=\"http://news.stanford.edu/news/2011/october/john-mccarthy-obit-102511.html\">Obituary</a>
</BODY>
</HTML>
" Removing intermediate container 270b432cee0b
@fukamachi
This is probably incorrect, but the problem I see is if dexador isn't compiled properly, backend/usocket.lisp declares version
to be type single-float
, which will raise an error when you manually set *read-default-float-format*
and give :version 1.1d0
from dexador.
@jnc-nj Glad to see that the problem is moving forward, thanks a lot.
from dexador.
Related Issues (20)
- Handle arrays/lists for application/x-www-form-urlencoded HOT 2
- [macOS] Error: The alien function "SSL_get_peer_certificate" is undefined. HOT 3
- connection cache is both thread unsafe and leaks sockets / connections HOT 1
- Connection-pool nil problem when using master HOT 6
- Allow content for dex:delete HOT 2
- There is no character with name "NUL" HOT 3
- ERROR 12002: Timeout [Condition of type WINHTTP::WIN-ERROR]
- dex:fetch leaves files open HOT 6
- Potential issue with failing to close connections HOT 12
- The condition #<CHUNGA:INPUT-CHUNKING-UNEXPECTED-END-OF-FILE 4060090DA0> occurred HOT 4
- Is there a problem with the `dex:post` with an s-expression data on the body? HOT 2
- `ignore-and-continue` on `http-request-fail` HOT 3
- Failing when requesting localhost HOT 15
- Dex not restarting with SSL errors.
- Automatic URL parameter encoding for Content-Type: application/x-www-form-urlencoded breaks old code HOT 4
- Calling DEX::MAYBE-CLOSE with optional "close-if T" argument causes a CCL::BAD-SLOT-TYPE HOT 4
- Windows: Content-Type is replaced with "text/plain" when `:content` is present HOT 3
- Dexador started automatically retry bad requests, but previosly didn't HOT 3
- Keep alive stream prematurely EOFs HOT 3
- Retry on typical errors solution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dexador.