This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-04-02
Channels
- # announcements (2)
- # aws (7)
- # babashka (47)
- # beginners (54)
- # biff (6)
- # calva (14)
- # clojure-europe (7)
- # clojure-germany (2)
- # clojure-japan (4)
- # clojure-norway (5)
- # datalevin (1)
- # deps-new (13)
- # helix (5)
- # hoplon (1)
- # hyperfiddle (12)
- # introduce-yourself (6)
- # joyride (1)
- # malli (2)
- # off-topic (21)
- # polylith (11)
- # re-frame (3)
- # reitit (8)
- # remote-jobs (1)
- # scittle (25)
- # shadow-cljs (20)
- # vim (19)
- # xtdb (4)
I'm having a weird issue I think I've isolated to re-frame.http-fx. I have an endpoint returning data when I access it in the browser or from curl. I can also get the expected result from using GET
in cljs-ajax
alone. That request looks like so
(GET ""
:params {"game_date_lt" "2022-05-01"
"game_date_gt" "2022-05-01"}
:handler (fn [resp] (.log js/console (str resp)))
:error-handler (fn [err] (.log js/console (str err))))
But when I use reg-event-fx
like this
(reg-event-fx
::get-statcast-data
(fn [_ _]
{:http-xhrio {:method :get
:url ""
:timeout 8000
:response-format (ajax/json-response-format {:keywords? true})
:on-success [:success-http]
:on-failure [:failure-http]}}))
I get a 500 from the server and a NullPointerException
. I know I shouldn't be passing the query string like that but if I use the :params
keyword I get re-find must match on a string
in the console.oh boy, nvm, I can't spell... :face_palm::skin-tone-2: