After update form 4.11 to 4.12 posting of data stopped to work.
This code worked correct in 4.11, see image.
With 4.12 I get:
It looks like the query is being assigned to a string instead of an object. I think you could try setting the body to a string, or pass an object to the query. Hope this helps!