tag:help.lighthouseapp.com,2008-09-20:/discussions/api-developers/200-youve-stumbled-on-an-error-messageLighthouse: Discussion 2011-06-23T14:40:22Ztag:help.lighthouseapp.com,2008-09-20:Comment/81064922011-06-22T15:32:05Z2011-06-22T15:36:22ZYou've stumbled on an error, Message<div><p>Ok so my <'s all got stripped now i'm sad</p>
<p>I'll try again<br>
<code>curl -H "Content-Type:application/xml" -H
"X-LighthouseToken:[[MY API TOKEN]]" -d "body=<changeset>
<title>[[USER]] committed changeset
[1]</title><body>initial
import</body><changes>A branches/ A tags/ A
trunk/</changes><revision>1</revision><changed-at
type='datetime'>2011-04-13T10:26:58+0100</changed-at></changeset>"
http://saviio.lighthouseapp.com/projects/[[MY PROJECT
ID]]/changesets.xml</code></p></div>Micheal Wilkinsontag:help.lighthouseapp.com,2008-09-20:Comment/81064922011-06-22T15:54:56Z2011-06-22T15:54:56ZYou've stumbled on an error, Message<div><p>At first look you're missing POST in your command. Curl defaults
to GET. Our <a href="http://help.lighthouseapp.com/kb/api">API
documentation is here</a>. We have a specific section on <a href=
"http://help.lighthouseapp.com/kb/api/scm-integration">integration
with source control management</a> as well.</p>
<p>Take a look at the documents and then your command format and
let us know if you have any questions.</p>
<p>Thanks,<br>
Nicole</p></div>Nicoletag:help.lighthouseapp.com,2008-09-20:Comment/81064922011-06-22T20:52:13Z2011-06-22T20:52:13ZYou've stumbled on an error, Message<div><p>Thanks for that Nicole, that helped me get more meaningful
errors back from<br>
your api, meaning I now have a fully working bash based svn >
lighthouse<br>
post commit hook</p>
<p>On 22 June 2011 16:54, Nicole Ramsey <<br>
<a href=
"mailto:tender+d1a9f38378317a6181a062aca60eb091b6b0a69ae@tenderapp.com">
tender+d1a9f38378317a6181a062aca60eb091b6b0a69ae@tenderapp.com</a>>
wrote:</p></div>Micheal Wilkinsontag:help.lighthouseapp.com,2008-09-20:Comment/81064922011-06-23T13:02:58Z2011-06-23T13:20:53ZYou've stumbled on an error, Message<div><p>it was working, now, no longer</p>
<p>My new curl command is<br>
`curl -X POST -H 'Content-Type:application/xml' -H
'X-LighthouseToken:[[API TOKEN]]' -d 'body=</p>
<pre>
<code><title>Email committed changeset [59]</title>
<body>Fixed exceptions being caused by refactor of terms (see commit 58)</body>
<changes type="yaml">---</code>
</pre>
<ul>
<li>
<ul>
<li>D</li>
</ul>
</li>
<li>trunk/application/models/Database/Organisationlimits.php</li>
<li>
<ul>
<li>M</li>
</ul>
</li>
<li>trunk/application/models/Database/Organisations.php</li>
<li>
<ul>
<li>A</li>
</ul>
</li>
<li>trunk/application/models/Database/Subscriptionlimits.php</li>
<li>
<ul>
<li>M</li>
</ul>
</li>
<li>trunk/application/views/scripts/admin/organisations.phtml</li>
</ul>
<pre>
<code><revision>59</revision>
<changed-at type="datetime">2011-06-23T13:06:59+0100</changed-at></code>
</pre>
<p>' <a href=
"http://saviio.lighthouseapp.com/projects/[[PROJECT">http://saviio.lighthouseapp.com/projects/[[PROJECT</a>
ID]]/changesets.xml`</p>
<p>That Changes are setout as that is how the API says they should
be setout although I have also tried</p>
<p>---<br>
- D trunk/application/models/Database/Organisationlimits.php - M
trunk/application/models/Database/Organisations.php - A
trunk/application/models/Database/Subscriptionlimits.php - M
trunk/application/views/scripts/admin/organisations.phtml<br>
as per the docs</p></div>Micheal Wilkinsontag:help.lighthouseapp.com,2008-09-20:Comment/81064922011-06-23T13:37:11Z2011-06-23T13:37:11ZYou've stumbled on an error, Message<div><p>Ok I figured it out, it was to do with spaces in the changeset
array</p></div>Micheal Wilkinsontag:help.lighthouseapp.com,2008-09-20:Comment/81064922011-06-23T14:40:22Z2011-06-23T14:40:22ZYou've stumbled on an error, Message<div><p>Michael -</p>
<p>Just let us know if you have more questions and we'll be happy
to answer them.</p>
<p>Thanks,<br>
Nicole</p></div>Nicole