works in Postman, not from notecard.
{“req”:“web.post”,“route”:“Polar”,“body”:{“temperature”:“25”}}
or
{“req”:“web.post”,“route”:“Polar”,“body”:{“temperature”:25}}
error is:
{“err”:“hub request error: invalid character ‘h’ after object key:value pair”}
If I go to a different route, I get a POST (the 400 is what I expect).
I’m not sure if this is the issue or not, but your code sample includes smart double-quotes which isn’t valid JSON. (May have just been a copy-paste formatting issue though.) Can you try with regular double quotes or single quotes?
Hey @poem, can you confirm that the endpoint you are accessing returns JSON as the content-type? That error from the Notecard looks like a parse error, which would suggest the return content-type is not valid JSON.
Using Postman to post {“temperature”:25} returns:
“‘payload’”
which is valid json
However, header indicates Content-Type:text/html
is that the problem?