Skip to content

Instantly share code, notes, and snippets.

@kbarber
Last active August 29, 2015 14:01
Show Gist options
  • Save kbarber/cf69c9c411033cdad7f8 to your computer and use it in GitHub Desktop.
Save kbarber/cf69c9c411033cdad7f8 to your computer and use it in GitHub Desktop.
[ken@kb puppetdb]# telnet 0 8080
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
POST /v3/commands HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: foo
Content-Length: 40
{}HTTP/1.1 500 java.util.concurrent.TimeoutException: Idle timeout expired: 30001/30000 ms
Date: Wed, 21 May 2014 19:49:57 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html; charset=ISO-8859-1
Content-Length: 355
Connection: close
Server: Jetty(9.1.0.v20131115)
<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 /v3/commands. Reason:
<pre> java.util.concurrent.TimeoutException: Idle timeout expired: 30001/30000 ms</pre></p>
<hr /><i><small>Powered by Jetty://</small></i>
</body>
</html>
[ken@kb puppetdb]# telnet 0 8080
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
POST /v3/commands HTTP/1.1
Accept: application/json
Content-Type: application/json
Host: foo
Content-Length: 2
{}
HTTP/1.1 200 OK
Date: Wed, 21 May 2014 19:50:48 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 53
Server: Jetty(9.1.0.v20131115)
{
"uuid" : "728f56d4-34c7-429e-9c5a-21386e76cb2d"
}
^]
telnet> q
Connection closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment