Can't create changesets via API

Jens K.'s Avatar

Jens K.

14 Nov, 2009 08:44 AM

I'm trying to integrate Lighthouseapp into my git workflow. I tried a few git post-receive scripts and get strange errors from that (perhaps that information is outdated?). So I investigated on that and used a http debuging client to inspect the communication.

I'm sending this changeset to http://jobstairs.lighthouseapp.com/projects/41272/changesets.xml:

POST /projects/41272/changesets.xml HTTP/1.1
X-Lighthousetoken: **************

<changeset>
    <body>Jens: test</body>
    <changed-at type="datetime">Sat, 14 Nov 2009 02:14:00 +0100</changed-at>
    <changes type="yaml">--- 
      - - - M
      - test.txt
    </changes>
    <revision>f68986442550b24fc61cb3f8d9e8758c2907a90f</revision>
    <title>Jens pushed new changes to the server</title>
</changeset>

and get the following inappropriate errors in response:

HTTP/1.1 422
Server: nginx/0.6.35
Date: Sat, 14 Nov 2009 08:23:09 GMT
Content-Type: application/xml; charset=utf-8
Connection: close
X-Runtime: 64ms
Cache-Control: no-cache
Content-Length: 137

<?xml version="1.0" encoding="UTF-8"?>
<errors>
    <error>Title can't be blank</error>
    <error>Revision can't be blank</error>
</errors>

No matter what I send as payload I will get the this error message everytime. Is the API broken?

I'll get this error message even when I send the example changeset from the API documentation.

  1. 1 Posted by Jens K. on 14 Nov, 2009 08:47 AM

    Jens K.'s Avatar

    Perhaps this post should be moved into the »API developer« forum. Sorry for that.

  2. 2 Posted by Rick on 16 Nov, 2009 06:47 PM

    Rick's Avatar

    Are you setting application/xml as the Content-Type?

  3. 3 Posted by Nicole on 01 Dec, 2009 09:51 PM

    Nicole's Avatar

    Please respond to this discussion if you are still having problems creating your changeset via the API and we'll be glad to continue helping you sort out the issue.

    Thanks,
    Nicole

  4. Nicole closed this discussion on 01 Dec, 2009 09:51 PM.

Discussions are closed to public comments.
If you need help with Lighthouse please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac