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!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...