Comments (6)
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.
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.
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.
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.
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.
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)
- Does karate gating support Java DSL ? HOT 2
- Mutual SSL documented the wrong way HOT 3
- GraalVM changes incompatible with Karate HOT 10
- How to switch from Java selenium webdriver to Karate driver HOT 1
- Missing header in spite of "configure headers" HOT 5
- afterScenario hook not running when scenario fails HOT 1
- File upload is not working when using Web driver when running test on Sauce Lab or Remote Grid HOT 7
- Karate does not work with Java 22 (?) => OK with Java 21 HOT 6
- Bug: Calling scenario with array argument of different object leads to unwanted behaviour HOT 1
- The switch from the iframe to the sub-iframe is not working HOT 1
- Chrome is not working from jenkins and getting driver config / start failed: start failed, options: {type=chrome, showDriverLog=true, addOptions=["--remote-allow-origins=*"], target=null} HOT 1
- replace graal with karate-js engine HOT 5
- Variables are lost after callonce java.lang.Thread.sleep() HOT 1
- [Improvement] Rename "request" keyword ? HOT 1
- Multiarch image for karatelabs/karate-chrome HOT 1
- getting this exception org.graalvm.polyglot.PolyglotException: not found: src/test/resources/payload/user.json in Karate HOT 2
- In Karate 1.2.0.RC1, the karate property set in karate-config.js file is coming as null when fetched in a Java File HOT 1
- Karate - Setting header for the subsequent calls on the same scenario is not working after updating to 1.x.x HOT 1
- Driver input method cannot type '[' HOT 5
- The request "path" can not be overwrited in mock.feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from karate.