Fork me on GitHub
#pedestal
<
2022-07-22
>
Ian Fernandez19:07:39

:io.pedestal.http.secure-headers/secure-headers - Key must be integer

Ian Fernandez19:07:53

I'm having this error, what does it mean?

ghadi20:07:32

you need a full stack trace

ghadi20:07:10

but, what that's trying to tell you is that there is a call to assoc to a vector, and you can only assoc to integer keys in the vector

ghadi20:07:18

but your code has passed that keyword instead

ghadi20:07:01

(assoc [:foo :bar :baz] :quux 42) instead of (assoc [:foo :bar :baz] 0 42)

clojure-spin 1
Ian Fernandez23:07:48

thanks 🙂

Ian Fernandez23:07:52

the stacktrace couldn't be found in *e @ghadi