[cl-facebook-devel] Fwd: JSON error on response
Dean Swinfield
dr.mobeus at googlemail.com
Mon Jan 4 11:16:22 UTC 2010
Hello,
Firstly, I should point out that I'm a Lisp newbie, so I could be doing
something silly, but when I try the example for cl-facebook, I get an error,
and could do with some guidance..
This is what I type it (I'm using SBCL via emacs and SLIME):
CL-USER> (setq *secret* "bec63f898bd92e1ee185ef6335dbbb10")
CL-USER> (setq *api-key* "cc5ec811854818562c9a0362b13657d9")
CL-USER> (setq *auth-id* (cl-facebook:facebook-auth-id *api-key* *secret*))
(obviously, the key and secret values are pseudo, but I'm showing how they
were entered)
After hitting return on the third line, I get this debug trace..
Invalid JSON literal name: Not [in #<SB-SYS:FD-STREAM for "a socket"
{B18E169}>]
[Condition of type JSON:JSON-SYNTAX-ERROR]
Restarts:
0: [ABORT] Return to SLIME's top level.
1: [TERMINATE-THREAD] Terminate this thread (#<THREAD "repl-thread" RUNNING
{B81AF49}>)
Backtrace:
0: (JSON:JSON-SYNTAX-ERROR #<SB-SYS:FD-STREAM for "a socket" {B18E169}>
"Invalid JSON literal name: ~A")[:EXTEND]
1: (JSON:DECODE-JSON #<SB-SYS:FD-STREAM for "a socket" {B18E169}>)
2: ((LAMBDA ()))
3: (SB-INT:SIMPLE-EVAL-IN-LEXENV (SETQ *AUTH-ID*
(CL-FACEBOOK:FACEBOOK-AUTH-ID *API-KEY* *SECRET*)) #<NULL-LEX$
--more--
The rest of the trace is the usual SLIME stuff. Anyway, anyone have thoughts
on what I'm doing wrong? Or suggest some routes for exploration?
PS.
Can i just point out that I've had issues trying to post to this mail group,
as I suspect it treats gmail.com and googlemail.com as separate domains
(whereas gmail doesn't).
Thanks
Dean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cl-facebook-devel/attachments/20100104/66e3146e/attachment.html>
More information about the cl-facebook-devel
mailing list