On 12 Dec 2008, at 15:35, Chris Browet wrote:
Actually, the problem is that I get zero-sized replies (the 502 is
sent by my proxy).
I guess some have already succeeded in uploading, right? With
Merkaartor? (In case it is a local config error)
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).
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.
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.
You are currently doing (simplified) on a create way upload:
<osm changeset="nn"><way id="0" version="-1880"><nd ref=.../><tag
k="created_by" v="Merkaartor 0.12"/><tag k=.. v=../></way></osm>
You should make the following changes:
changeset from osm element => way element
version isn't required
when creating an id is not required
the created by tag is no longer required on nodes/ways/relations, as
it is now on the changeset.
Which means that you end up with:
<osm><way><nd ref=../><tag k=.. v=../></way></osm>
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.
It should be noted that we are starting to return more meaningful
error messages when errors happen on the API.
Shaun
- Chris -
On Thu, Dec 11, 2008 at 4:27 PM, Shaun McDonald <[email protected]
> wrote:
According to the server log, it appears to be a 401 Unauthorized
that is being returned.
Could it be that the auth headers aren't being sent properly?
shaun
On 11 Dec 2008, at 14:54, Chris Browet wrote:
Not too sure if it's Merkaartor or the API (because 0.6 in
Merkaartor was coded by Bart back in June).
I receive a "502 - Bad Gateway" when trying to create a changeset,
in a blank area if that matter.
I checked the api page and the request seemed fine to me.
- Chris -
On Thu, Dec 11, 2008 at 12:22 PM, Shaun McDonald <[email protected]
> wrote:
Hi,
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.
Can you all please take a look at the following page to find out
more about testing the 0.6 API:
http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6/Crowd_sourced_Testing
And then please put your testing hats on to find the bugs.
Shaun
_______________________________________________
Merkaartor mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/merkaartor
_______________________________________________
dev mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/dev