GithubHelp home page GithubHelp logo

Comments (6)

YOU54F avatar YOU54F commented on May 17, 2024 2

Just to revisit this @ptrthomas

Got this working now for my local wiremock service, by changing the port to 1705 rather than 9000!

thanks again!

 java -jar wiremock-standalone-2.5.1.jar --root-dir=stubs --port=1705 --verbose

from karate.

YOU54F avatar YOU54F commented on May 17, 2024 1

Thanks buddy for suggesting some investigation routes.

I had seen that issue listed on wiremock and upon checking stackoverflow too.

I will do some investigation and should I find a solution, I will post back.
👍

from karate.

ptrthomas avatar ptrthomas commented on May 17, 2024

Quick one, can you add a -Dhttp.keepAlive=false to the wiremock start and see if that helps ? something like java -jar -Dhttp.keepAlive=false [..]

from karate.

YOU54F avatar YOU54F commented on May 17, 2024

Thanks for the response chap.

Tried

java -jar -DKeepAlive=false wiremock-standalone-2.5.1.jar --port=9000 --verbose

to no avail. Still getting the same error - javax.ws.rs.ProcessingException: java.net.SocketException: Unexpected end of file from server

Had looked at the wiremock documentation and they don't appear to support setting of keep-alive

http://wiremock.org/docs/running-standalone/

Wonder if I may be able to via an extension.

Tres bizarre!

from karate.

ptrthomas avatar ptrthomas commented on May 17, 2024

Karate uses WireMock for the unit-test: https://github.com/intuit/karate/tree/master/karate-junit4/src/test/java/com/intuit/karate/junit4/wiremock

So if you can use that as a starting point and replicate, that might help. Also ensure that wiremock is started on Java 8. Try -Dfile.encoding=utf-8 - is the TeamCity JAR / java version the same.

Also it does look like a known issue with WireMock: https://github.com/tomakehurst/wiremock/issues/132#issuecomment-288984013
https://github.com/tomakehurst/wiremock/issues/256

As per some stackoverflow posts I read, this can also happen if there are spaces or special characters in the URL.

Will close as unable to replicate.

from karate.

ptrthomas avatar ptrthomas commented on May 17, 2024

really appreciate you reporting this back, this will help others. maybe there was a process that had locked that port or it was a permissions issue.

from karate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.