[Openstreetmap] Server problem?

SteveC steve at asklater.com
Mon Nov 28 01:19:52 GMT 2005


* @ 28/11/05 12:46:45 AM tpe at ida.liu.se wrote:
> 
> Is there a problem with the server?
> 
> emil51:~/mycvs/osm/osmpedit> perl test --createnode
> DATA: <osm version='0.2'>
> <segment tags='name=TommyPersson' from='58.408306' to='15.558601'/>
> </osm>

you're trying to create a segment with node data here, or something
strange.

> URL:http://www.openstreetmap.org/api/0.2/newsegment
> HEADER: HTTP/1.1 100 Continue
> 
> HTTP/1.1 404 Not Found

Saying 404 is correct as the documentation states:

http://www.openstreetmap.org/wiki/index.php/REST#Line_Segments

'404 NOT_FOUND means the node wasn't there in the first place.'


And nodes 58.408306 and 15.558601 don't exist, so it returned 404. Very
RESTful.

> Date: Mon, 28 Nov 2005 00:44:14 GMT
> Server: Apache/2.0.54 (Debian GNU/Linux) mod_ruby/1.2.4 Ruby/1.8.3(2005-09-21) DAV/2 SVN/1.1.4 PHP/4.3.10-16
> Content-Length: 224
> Content-Type: text/html; charset=iso-8859-1
> 
> 
> ------
> 
> I also wonder what "internal server error" means?  I tried to create a
> segment with erronous from and to values and got internal server
> error.  Shouldn't the result be bad parameters or something like that?

HTTP 500 HTTP_INTERNAL_SERVER_ERROR is documented also. 'This could mean
either the API isn't working itself, Apache, or the SQL server.'

In this instance it seems you were trying to upload bad data to the API,
which looked for non existant methods (because it couldn't create the
node objects) and fell over. Gracefully.

I've made a ticket for the bug

http://www.openstreetmap.org/trac/ticket/80#preview

What are you trying to do with OSM's API anyway?

have fun,

SteveC steve at asklater.com http://www.asklater.com/steve/




More information about the talk mailing list