10
Views
4
Comments
Solved
"Incorrect request body: (request body).content must be present"
Question

Why do i get this error when i post printjob

Solution

the issue was the url. 

url must like : "http://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"

Hello,

Going by the PrintNode API docs here, I don't see anything immediately obvious. Just to make sure, have you tried sending all parameters in lower case ("printerId", "title", "content", etc)?

yes, I've tried it!

Solution

the issue was the url. 

url must like : "http://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"

I had a similar problem.  I didn't have  the 'Content-Type': 'application/json' header set.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.