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

Why do i get this error when i post printjob

UserImage.jpg
K A
Solution

the issue was the url. 

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

2019-06-15 21-39-22
Afonso Carvalho
 
MVP

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)?

UserImage.jpg
K A

yes, I've tried it!

UserImage.jpg
K A
Solution

the issue was the url. 

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

UserImage.jpg
Benson Trent

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.