<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 12 Dec 2008, at 15:35, Chris Browet wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Actually, the problem is that I get zero-sized replies (the 502 is sent by my proxy).<br><br>I guess some have already succeeded in uploading, right? With Merkaartor? (In case it is a local config error)<br><br></blockquote><div><br></div><div>Looking through all the changesets that have been uploaded, none of them have been created by Merkaartor. It should be noted that the dev server (using modrails/passenger) is using a slightly different setup compared to the production server (using mogrels).</div><div><br></div><div>Using Merkaartor against my local server, it does create a changeset, however it doesn't manage to update ways due to a bad request. Merkaartor seems to be thinking that a bad request means that the upload succeeded, by removing it from the dirty layer.</div><div><br></div><div>I have discovered the problem why Merkaartor is getting a bad request. It is due to where the changeset is placed. I know it is repetitive, however the way that the current API 0.6 is implemented, is that each node, way or relation that is uploaded, should have a changeset, rather than the outer osm element.</div><div><br></div><div>You are currently doing (simplified) on a create way upload:</div><div><osm changeset="nn"><way id="0" version="-1880"><nd ref=.../><tag k="created_by" v="Merkaartor 0.12"/><tag k=.. v=../></way></osm></div><div><br></div><div>You should make the following changes:</div><div>changeset from osm element => way element</div><div>version isn't required</div><div>when creating an id is not required</div><div>the created by tag is no longer required on nodes/ways/relations, as it is now on the changeset.</div><div>Which means that you end up with:</div><div><osm><way><nd ref=../><tag k=.. v=../></way></osm></div><div><br></div><div>Another issue that I found was that if a node fails to be created, or edited then the editor should not try to upload any way that references those nodes.</div><div><br></div><div>It should be noted that we are starting to return more meaningful error messages when errors happen on the API.</div><div><br></div><div>Shaun</div><br><blockquote type="cite">- Chris -<br> <br><div class="gmail_quote">On Thu, Dec 11, 2008 at 4:27 PM, Shaun McDonald <span dir="ltr"><<a href="mailto:Shaun@shaunmcdonald.me.uk">Shaun@shaunmcdonald.me.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div style="">According to the server log, it appears to be a 401 Unauthorized that is being returned.<div><br></div><div>Could it be that the auth headers aren't being sent properly?</div><div><br></div><font color="#888888"><div> shaun</div></font><div><div></div><div class="Wj3C7c"><div><br><div><div>On 11 Dec 2008, at 14:54, Chris Browet wrote:</div><br><blockquote type="cite">Not too sure if it's Merkaartor or the API (because 0.6 in Merkaartor was coded by Bart back in June).<br> <br>I receive a "502 - Bad Gateway" when trying to create a changeset, in a blank area if that matter.<br> I checked the api page and the request seemed fine to me.<br><br>- Chris -<br><br><div class="gmail_quote"> On Thu, Dec 11, 2008 at 12:22 PM, Shaun McDonald <span dir="ltr"><<a href="mailto:Shaun@shaunmcdonald.me.uk" target="_blank">Shaun@shaunmcdonald.me.uk</a>></span> wrote:<br> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div><div><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;"> Hi,</div><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;"><br></div><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;"> As the 0.6 XML API is now feature complete, I'd like to start a push for getting it tested, to iron on the final bugs prior to going live.</div> <div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;"> <br></div><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;">Can you all please take a look at the following page to find out more about testing the 0.6 API:</div> <a href="http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/Crowd_sourced_Testing" target="_blank">http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/Crowd_sourced_Testing</a><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;"> <br></div><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;">And then please put your testing hats on to find the bugs.</div><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;"> <br></div><font color="#888888"><div style="font-family: Helvetica; font-size: 12px; color: black; text-align: left;">Shaun</div></font></div></div><br>_______________________________________________<br> Merkaartor mailing list<br> <a href="mailto:Merkaartor@openstreetmap.org" target="_blank">Merkaartor@openstreetmap.org</a><br> <a href="http://lists.openstreetmap.org/listinfo/merkaartor" target="_blank">http://lists.openstreetmap.org/listinfo/merkaartor</a><br> <br></blockquote></div><br></blockquote></div><br></div></div></div></div></blockquote></div><br></blockquote></div><br></body></html>