All Apps and Add-ons

WebTools - Error "Invalid JSON payload"

Morty2
New Member

Good Afternoon, 

Running a super basic test to validate i can send a POST to our Ansible Tower Listener.

Search: 

| makeresults
| eval header="{\"content-type\":\"application/json\"}"
| eval data="{\"Message\": \"This is a test\"}"
| eval id="http://Somehost:someport/"
| curl method=post urifield=id headerfield=header datafield=data debug=true


The same payload in Postman works 100% 

what i have noticed is that its converting the double quotes to single:
curl_data_payload:
{'monitor_state': 'unmonitored'}

When i test this payload in Post man it also fails with the same message invalid JSON payload.

Has Anyone had this issue? knows how to address it... I have no hair left to rip out. 

Labels (1)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

Splunk Decoded: Business Transactions vs Business IQ

It’s the morning of Black Friday, and your e-commerce site is handling 10x normal traffic. Orders are flowing, ...

Fastest way to demo Observability

I’ve been having a lot of fun learning about Kubernetes and Observability. I set myself an interesting ...