I'm seeing some strange behavior with this example. Consider the following console output. In between executions of gutenberg.sh I restarted the server (with the -reset switch). As you'll see, most of the documents fail to load -- but not the same ones each time! The web interface confirms that Little Dorrit made it one time, and Bleak House the next. Sometimes they all fail. Any ideas?
(superfastmatch)toms-macbook:scripts thomaslee$ ./gutenberg.sh
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
<!DOCTYPE html>
<html>
<body>
<h1><a href="/queue/1/">Queue Item: 1</a></h1>
<p>Queued <a href="/document/1/3/">Document(1,3)</a> for insertion into index</p>
</body>
</html>400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
<!DOCTYPE html>
<html>
<body>
<h1><a href="/queue/2/">Queue Item: 2</a></h1>
<p>Queued <a href="/document/1/11/">Document(1,11)</a> for insertion into index</p>
</body>
</html>500 Internal Server Error (logic error)
(superfastmatch)toms-macbook:scripts thomaslee$ ./gutenberg.sh
<!DOCTYPE html>
<html>
<body>
<h1><a href="/queue/1/">Queue Item: 1</a></h1>
<p>Queued <a href="/document/1/1/">Document(1,1)</a> for insertion into index</p>
</body>
</html>400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
400 Bad Request (receiving data failed)
<!DOCTYPE html>
<html>
<body>
<h1><a href="/queue/2/">Queue Item: 2</a></h1>
<p>Queued <a href="/document/1/11/">Document(1,11)</a> for insertion into index</p>
</body>
</html>500 Internal Server Error (logic error)
(superfastmatch)toms-macbook:scripts thomaslee$