Getting error 500 when trying the record request/response

1,235 views
Skip to first unread message

moran zilberstaine

unread,
May 1, 2017, 9:58:46 AM5/1/17
to wiremock-user
Hi I'm using WireMock first time.
I'm getting the following error message - 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /sdvalisvcService/validate/v1/validate_listing_cos. Reason:

<pre>    java.lang.RuntimeException: java.net.SocketException: Software caused c
onnection abort: recv failed</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>

What i did - 
1. Ran a standalone version by - 
java -jar wiremock-standalone-2.6.0.jar --proxy-all="url-to-my-server" --record-mappings --verbose
Server was up

2. Ran POST request using curl - 
C:\DEV\Input>curl -H "Content-Type: application/json" -H "Accept: application/js
on"  -X POST -d @c:/Users/mzilberstein/req.txt http://localhost:8080/sdvalisvcService/validate/
Can you please help?

Thanks,
Moran

Tom Akehurst

unread,
May 1, 2017, 10:08:39 AM5/1/17
to wiremock-user
Looks like the connection to your server bombed out. Can you post the output logged to the console by WireMock?

moran zilberstaine

unread,
May 1, 2017, 10:54:06 AM5/1/17
to wiremock-user
Can you please guide me how?

Tom Akehurst

unread,
May 1, 2017, 11:23:41 AM5/1/17
to wiremock-user
You should be already be seeing log messages in whatever console you started WireMock from since you specified the --verbose option. I'd expect there to be a stack trace for the error you've posted.

moran zilberstaine

unread,
May 3, 2017, 11:56:54 AM5/3/17
to wiremock-user
No error was thrown on console...just the time stamp and Proxying message...

moran zilberstaine

unread,
May 3, 2017, 12:10:32 PM5/3/17
to wiremock-user
v1/validate_listing_cos
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 500 </title>
</head>
<body>
<h2>HTTP ERROR: 500</h2>
<p>Problem accessing /validate_listing_cos. Reason:

<pre>    java.lang.RuntimeException: wiremock.org.apache.http.conn.HttpHostConnectException: Connect to aaa-6908.aaa.dev.aaa.com:80 [aaa-6908.aaa.dev.aaa.com/10.20.160.160] failed: Connection refused: connect</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>

Just noticed it...

Tom Akehurst

unread,
May 3, 2017, 3:52:14 PM5/3/17
to wiremock-user
OK, that doesn't look like a real hostname so I guess that's probably your problem.
Reply all
Reply to author
Forward
0 new messages