On Sun, Sep 20, 2020 at 04:16:55PM +0000, Brian Hughes wrote: > This first fragment throws an error: > > (form-urlencoded-separator "&") > (define foo (make-uri scheme: 'https > host: "graph.facebook.com" > path: `(,my-facebook-id) > query: `[(fields . "name") > (access_token . ,(get-app-access- > token))]))
Hi Brian, The path in the snippet above is not an absolute path. > (display (with-input-from-request foo #f read-json)) > > Output: > $ csi -s fb.scm > > Error: (call-with-input-request) Client error: 400 Bad Request: " > https://graph.facebook.com100055065685451?fields=name&access_token=<redacted > >" Note the missing slash between .com and 100055... You can fix this by using path: `(/ ,my-facebook-id) Cheers, Peter
signature.asc
Description: PGP signature