Error - POSTMAN REST Client - Google Chrome - "Found invalid content-type. The content-type must be application/json" - Header IS set
Weirdest thing...
I'm using POSTMAN to work with the REST Interface on the F5's and im having a heck of a time getting stuff to post.
I've set the content-type header to application/json. No dice, I just keep getting - {"code":415,"message":"Found invalid content-type. The content-type must be application/json. The received content-type is 10e18c4c-e066-0ab4-74bd-aa578954ae61","errorStack":[]}
Any thoughts? my JSON object is...
{ "name": "10.0.0.2:80", "address": "10.0.0.2", "ratio": "1" }
I'm able to do that using CLI tools, just not using POSTMAN. Wondering if anyone else has had this problem, and has any nice work arounds for it?
FIXED! The issue seems to have been caused by the Postman-Token header confusing the F5 (you can see it using chrome tools network tab) . Somehow the F5 was treating the Postman-Token as the Content-Type header. Disable the Postman-Token header (Settings > General > Headers > "Send Postman Token header") and the request gets through.
You can see the purpose of the Postman-token header here https://www.getpostman.com/docs/settings
Enable chrome tools for postman http://blog.getpostman.com/2014/01/27/enabling-chrome-developer-tools-inside-postman/