The method backend-payload, which is called by payload-as-string, would read the raw post data from Hunchentoot as a byte array. I implemented a quick fix by replacing (funcall (read-from-string "hunchentoot:raw-post-data")) by (apply (read-from-string "hunchentoot:raw-post-data") '(:force-text t)). This is maybe not the best solution, but it works for my purposes.
For me, the function
payload-as-string
was not functioning properly, using Huchentoot as a backend. The curl request I send looks like this:The method
backend-payload
, which is called bypayload-as-string
, would read the raw post data from Hunchentoot as a byte array. I implemented a quick fix by replacing(funcall (read-from-string "hunchentoot:raw-post-data"))
by(apply (read-from-string "hunchentoot:raw-post-data") '(:force-text t))
. This is maybe not the best solution, but it works for my purposes.