-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: No content to map due to end-of-input #58
Comments
Hey @ThefplAnalyst :) Did you try to run this with debugging enabled? It appears that there was no response from the endpoint. It would be interesting to see what came across the wire. |
Thanks johanmynhardt
|
:-/ Hmm, I was hoping there would be actual content to see. Any possibility that you can recreate the request as a cURL request? It hints at not getting anything from the server, which is awkward. |
I got same exception |
Hi
I am able to connect and retrieve categories.
I am getting an error when trying to make a post.
final Post post = aPost().withTitle(aTitle().withRendered(expectedTitle).build()) .withExcerpt(anExcerpt().withRendered(expectedExcerpt).build()) .withContent(aContent().withRendered(expectedContent).build()) .withCategories(catogeryList) .build();
java.lang.RuntimeException: Can not create ParsedRestException.
Done
at com.afrozaar.wordpress.wpapi.v2.exception.ParsedRestException.of(ParsedRestException.java:105)
at com.afrozaar.wordpress.wpapi.v2.exception.PostCreateException.(PostCreateException.java:8)
at com.afrozaar.wordpress.wpapi.v2.Client.createPost(Client.java:156)
at com.afrozaar.wordpress.wpapi.v2.Client.createPost(Client.java:162)
at com.analyst.orchestrator.WebPublisher.main(WebPublisher.java:81)
Caused by: com.fasterxml.jackson.databind.JsonMappingException: No content to map due to end-of-input
at [Source: [B@751e664e; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3781)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3721)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2819)
at com.afrozaar.wordpress.wpapi.v2.exception.ParsedRestException.of(ParsedRestException.java:98)
The text was updated successfully, but these errors were encountered: