79323560

Date: 2025-01-02 11:31:41
Score: 4
Natty:
Report link

I did also get the same issue, however it was not updating my java version or karate version.

I had a dependency spring-cloud-starter-netflix-eureka-client that caused my problem.

Either removing this dependency, or having this dependency lower than karate's dependencies worked. I suspect other spring-cloud dependencies might have a similar effect.

This DID NOT WORK

<dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
<dependency>
      <groupId>com.intuit.karate</groupId>
      <artifactId>karate-junit5</artifactId>
      <scope>test</scope>
</dependency>

Swapping them DID work

<dependency>
      <groupId>com.intuit.karate</groupId>
      <artifactId>karate-junit5</artifactId>
      <scope>test</scope>
</dependency>
<dependency>
      <groupId>org.springframework.cloud</groupId>
      <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>
Reasons:
  • Blacklisted phrase (1): DID NOT WORK
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): also get the same issue
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Stefan