This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-09-04
Channels
- # aleph (1)
- # announcements (7)
- # beginners (22)
- # calva (31)
- # cider (2)
- # clj-commons (1)
- # clj-http (2)
- # clj-kondo (10)
- # cljsrn (33)
- # clojure (18)
- # clojure-europe (7)
- # clojure-nl (3)
- # clojure-uk (2)
- # clojurescript (93)
- # depstar (3)
- # events (1)
- # figwheel-main (3)
- # fulcro (13)
- # graalvm (95)
- # graphql (1)
- # introduce-yourself (1)
- # lsp (92)
- # off-topic (2)
- # pathom (11)
- # releases (1)
- # shadow-cljs (33)
- # specter (6)
- # tools-deps (4)
- # vim (3)
- # web-security (1)
- # xtdb (7)
i make the following curl request and it works, but when I convert it to clj-http, it gives an error. curl
curl -X 'GET' \
'' \
-H 'accept: application/json' \
-H 'X-API-Key: myapikey'
clj-http
(client/get (str " "
(-> req :params :contract-address)
"/owners?chain=eth&format=decimal"
{:headers {:accept "application/json"
:X-API-Key "myapikey"}}))
clj-http returns 401 with the following body:
"{\"message\":\"API KEY missing from x-api-key header\"}"
How to fix this?