tag:help.lighthouseapp.com,2008-09-20:/discussions/problems/471-error-when-updating-a-ticket-through-the-apiLighthouse: Discussion 2012-07-20T17:34:22Ztag:help.lighthouseapp.com,2008-09-20:Comment/673212009-02-14T00:08:19Z2009-02-14T00:08:19ZError when updating a ticket through the API<div><p>I'm wondering when I might see a response to this issue. This is
currently causing production downtime for me and my team. Are you
guys looking into this issue?</p>
<p>In researching the issue further, I can see from doing a basic
curl call to the API that some fields are being included twice:</p>
<pre>
<code> <user-name>John Parker</user-name>
<creator-name>John Parker</creator-name>
<assigned-user-name>Doug Johnston</assigned-user-name>
<url>http://xxxx.lighthouseapp.com/projects/####/tickets/###</url>
<user-name>John Parker</user-name>
<creator-name>John Parker</creator-name>
<assigned-user-name>Doug Johnston</assigned-user-name>
<url>http://xxxx.lighthouseapp.com/projects/####/tickets/###</url></code>
</pre>
<p>These are the fields that are breaking the API save method
because it's trying to pass multiple identical values to
to_xml.</p>
<p>Can I have some assurances that you guys are working to resolve
this issue? Thanks!</p></div>dougjohnstontag:help.lighthouseapp.com,2008-09-20:Comment/673212009-02-14T01:22:22Z2009-02-14T01:22:22ZError when updating a ticket through the API<div><p>Ah, it has to do with the multiple fields being returned. That's
odd... It's probably a quick fix on our end.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/673212009-02-14T01:32:26Z2009-02-14T01:32:26ZError when updating a ticket through the API<div><p>Ahh yup. I added some custom attributes earlier in the week so
that you could get common things like the User name or Milestone
title without having to make another API call. The array of custom
attributes sometimes had duplicates (like the extra :url above),
which causes XML parsing issues in the client library.<br></p>
<p>I've pushed the fix out, so you should be good to go. I do
realize that API testing is one of our weak points. We have some
plans to automate remote API testing and documentation building
soon that should help immensely in this regard.</p></div>Ricktag:help.lighthouseapp.com,2008-09-20:Comment/673212009-02-14T03:45:45Z2009-02-14T03:45:45ZError when updating a ticket through the API<div><p>Thanks Rick, I'm glad to hear that it was a relatively simple
fix. It's good to hear that you guys are working on testing the API
more thoroughly. I've had a few API issues in the past, but nothing
for the last few months. Thanks again for making the fix!</p></div>dougjohnston