Ad Widget

Collapse

HTTP Agent: Cannot add item Invalid parameter "posts": JSON is expected.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DPasternak
    Junior Member
    • Sep 2021
    • 12

    #1

    HTTP Agent: Cannot add item Invalid parameter "posts": JSON is expected.

    Hi,

    I have an issue with adding HTTP Agent item. When I'm running the test, there is no problem and I can see JSON output.
    Click image for larger version

Name:	chrome_NHqjJj4sNL.png
Views:	1770
Size:	46.7 KB
ID:	432221
    Click image for larger version

Name:	chrome_2gIzy1ohWx.png
Views:	1734
Size:	66.7 KB
ID:	432222
    Click image for larger version

Name:	chrome_gs7E7nmdUO.png
Views:	1733
Size:	27.7 KB
ID:	432223
    Click image for larger version

Name:	chrome_CZWKiKjQfM.png
Views:	1723
Size:	23.7 KB
ID:	432224


    Finally, I get the string and JSON of the result by parsing the data. However, when I want to save, an error is returned to me.

    Please help me figure it out, I could not find anything on it.
    Thank you.
  • DPasternak
    Junior Member
    • Sep 2021
    • 12

    #2
    Originally posted by cyber
    You defined that request body is JSON, but left the field empty... Set it to Raw data and you should be fine, as you actually will get back JSON, not submitting JSON...
    Thank you.

    Comment

    Working...