[cl-openid-devel] Fwd: getaddrinfo fails upon calling 'cl-openid:initiate-authentication
Aad Versteden
madnificent at gmail.com
Sat Mar 7 00:34:49 UTC 2009
Hello,
The 'bug' I had was probably related to an invalid OpenID (apparently
my OpenID provider changed it in the last week or so). I tried to get
the library running as quickly as I could, so I installed it again
with cl-librarian. This made the whole system work.
Because I had seen another strange error come up during testing, I
have added the backtrace of an (other) error that got thrown whilst
trying to execute your example (see bottom). The error occurs upon
calling (cl-openid:initiate-authentication *relying-party*
"http://www.pasternacki.net/"). It is only thrown when using the
darcs dist method to install the library.
The system currently works and I have built a wrapper for cl-openid
for cl-ayworks named, cm-openid (github for more info). I still need
to catch the errors that might get thrown when the identification
fails, is there a comprehensible list of errors available somewhere.
If not, I'll go the dirty way, and catch all errors.
Thanks for the fast replies and splendid help,
Aad Versteden
------ BACKTRACE ------
The function CL-OPENID::EXPT-MOD is undefined.
[Condition of type UNDEFINED-FUNCTION]
Restarts:
0: [ABORT] Return to SLIME's top level.
1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread"
RUNNING {10035FD371}>)
Backtrace:
0: ("bogus stack frame")
1: (CL-OPENID::ASSOCIATE #<PURI:URI
http://www.myopenid.com/server>)[:EXTERNAL]
2: ((FLET SB-THREAD::WITH-MUTEX-THUNK))
3: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-MUTEX]477))
4: (SB-THREAD::CALL-WITH-MUTEX #<CLOSURE (FLET
SB-THREAD::WITH-MUTEX-THUNK) {7F7C89B0F049}> #S(SB-THREAD:MUTEX :NAME
NIL :%OWNER #<SB-THREAD:THREAD "repl-thread" RUNNING {10035FD371}>
:STATE 1) #<SB-THREAD:THREAD "repl-thread" RUNNING {10035FD371}> T)
5: (CL-OPENID::ASSOCIATION #<CL-OPENID:RELYING-PARTY {1002CADAF1}>
#<unavailable argument> NIL)
6: (CL-OPENID:INITIATE-AUTHENTICATION #<CL-OPENID:RELYING-PARTY
{1002CADAF1}> "http://www.pasternacki.net/")[:EXTERNAL]
7: (SB-INT:SIMPLE-EVAL-IN-LEXENV (CL-OPENID:INITIATE-AUTHENTICATION
*RELYING-PARTY* "http://www.pasternacki.net/") #<NULL-LEXENV>)
8: (SWANK::EVAL-REGION "(cl-openid:initiate-authentication
*relying-party* \"http://www.pasternacki.net/\")
")
9: ((LAMBDA NIL))
10: (SWANK::TRACK-PACKAGE #<CLOSURE (LAMBDA NIL) {1002CB3E49}>)
11: ((LAMBDA (SWANK-BACKEND::FN)) #<CLOSURE (LAMBDA NIL) {1002CB3E19}>)
12: (SWANK::CALL-WITH-BUFFER-SYNTAX #<CLOSURE (LAMBDA NIL) {1002CB3E19}>)
13: (SWANK::REPL-EVAL "(cl-openid:initiate-authentication
*relying-party* \"http://www.pasternacki.net/\")
")
14: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SWANK:LISTENER-EVAL
"(cl-openid:initiate-authentication *relying-party*
\"http://www.pasternacki.net/\")
") #<NULL-LEXENV>)
15: ((LAMBDA NIL))
16: ((FLET #:FORM-FUN1575))
17: ((FLET #:FORM-FUN1575))
18: ((LAMBDA (SWANK-BACKEND::HOOK SWANK-BACKEND::FUN)) #<FUNCTION
SWANK:SWANK-DEBUGGER-HOOK> #<CLOSURE (LAMBDA NIL) {1002CB3CE9}>)
19: ((LAMBDA NIL))
20: ((FLET #:FORM-FUN1575))
21: ((FLET #:FORM-FUN1575))
22: ((LAMBDA (SWANK-BACKEND::HOOK SWANK-BACKEND::FUN)) #<FUNCTION
SWANK:SWANK-DEBUGGER-HOOK> #<FUNCTION (LAMBDA NIL) {1003DD4239}>)
23: (SWANK::CALL-WITH-REDIRECTED-IO #<SWANK::CONNECTION {10032B7DF1}>
#<CLOSURE (LAMBDA NIL) {1002CB3BD9}>)
24: (SWANK::CALL-WITH-CONNECTION #<SWANK::CONNECTION {10032B7DF1}>
#<FUNCTION (LAMBDA NIL) {1003DD4239}>)
25: (SWANK::HANDLE-REQUEST #<SWANK::CONNECTION {10032B7DF1}>)
26: (SWANK::REPL-LOOP #<SWANK::CONNECTION {10032B7DF1}>)
27: (SWANK::REPL-LOOP #<SWANK::CONNECTION {10032B7DF1}>)[:EXTERNAL]
28: (SWANK::CALL-WITH-BINDINGS NIL #<CLOSURE (LAMBDA NIL) {10036030D9}>)
29: ((FLET SB-THREAD::WITH-MUTEX-THUNK))
30: ((FLET #:WITHOUT-INTERRUPTS-BODY-[CALL-WITH-MUTEX]477))
31: (SB-THREAD::CALL-WITH-MUTEX #<CLOSURE (FLET
SB-THREAD::WITH-MUTEX-THUNK) {7F7C89B0FEE9}> #S(SB-THREAD:MUTEX :NAME
"thread result lock" :%OWNER #<SB-THREAD:THREAD "repl-thread" RUNNING
{10035FD371}> :STATE 1) #<SB-THREAD:THREAD "repl-thread" RUNNING
{10035FD371}> T)
32: ((LAMBDA NIL))
33: ("foreign function: #x41F1B2")
34: ("foreign function: #x41643A")
More information about the cl-openid-devel
mailing list