Skip to content

Error: No content to map due to end-of-input #58

@ThefplAnalyst

Description

@ThefplAnalyst

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions