Curl request on form submission

and what’s in the representation template?

<?php

echo json_encode($response, ARRAY_FILTER_USE_KEY);

When I tried posting the form earlier, I got the “it works” message, now I’m getting an error. So it seems that it worked at one point in time.

I can’t point my finger at what’s going wrong here.