Unable to Parse response body for response bla... bla... from TicketService(module) in Java Spring Data Elasticsearch

I m take same error. I have account-service,ticket-service,notification-service,eureka-service.(Java spring cloud microservice app) Ticket-service is using elasticsearch. Ticket-service database is mysql 8.0.31 on docker. I want to creat ticket. I m opening postman. I am filling the ticket json. I am sending it with the post method. After
"status": 500,
"error": "Internal Server Error",
"trace": "org.springframework.dao.DataAccessResourceFailureException: Unable to parse response body for Response{requestLine=PUT /ticket/_doc/59e0dbdc-26c1-4dda-91d7-ea1af24bbb8a?timeout=1m HTTP/1.1, host=http://localhost:9200, response=HTTP/1.1 201 Created}; nested exception is java.lang.RuntimeException: Unable to parse response body for Response{requestLine=PUT / bla... bla... what should I do? I m using elasticsearch 8.4.2 on docker.
ticket-service

@Repository
public interface TicketElasticRepository extends ElasticsearchRepository<TicketModel, String> {
}

pom.xml

    <properties>
        <java.version>17</java.version>
        <elasticsearch.version>7.17.0</elasticsearch.version>
    </properties>

pom.xml again.

       <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-elasticsearch</artifactId>
        </dependency>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.