tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/22-nethttpclienterror-422Lighthouse: Discussion 2011-04-07T05:34:25Ztag:help.lighthouseapp.com,2008-09-20:Comment/112602007-12-10T21:13:26Z2009-06-20T20:56:07ZNet::HTTPClientError 422<div><p>When using the post-commit hook for git, it returns me the
following error :</p>
<h1><Net::HTTPClientError 422 readbody=true></h1>
<p>This is the XML content of the post :</p>
<pre>
<code><title>FIRSTNAME LASTNAME pushed new changes to the server</title>
<body> FIRSTNAME LASTNAME (1):
Last test for lighthouse</code>
</pre>
<pre>
<code><changes type="yaml">---</code>
</pre>
<ul>
<li>
<ul>
<li>
<ul>
<li>M</li>
<li>app f21796bac1b49544c3058ce2c5686ac223a6099a <changed-at
type="datetime">Mon, 10 Dec 2007 20:43:51
+0000</changed-at></li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Do you see anything wrong with it ?</p></div>gregory.becker (at mac)tag:help.lighthouseapp.com,2008-09-20:Comment/112602007-12-11T19:22:13Z2009-06-20T20:56:08ZNet::HTTPClientError 422<div><p>Has the revision been pushed to Lighthouse already? A 422 is a
validation error, which is probably just a duplicate revision
string. Is there any way you can print the body of the response? If
it is a validation error it should let you know what the errors
were specifically.</p></div>Rick