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

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

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

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"?>
    <error>Title can't be blank</error>
    <error>Revision can't be blank</error>

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.


  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


? 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