[OSM-dev] [OSM-talk] problem inserting nodes through the OSM API

Shaun McDonald shaun at shaunmcdonald.me.uk
Sun May 2 20:28:05 BST 2010


Moving to the dev mailing list.

What is the request that you are sending to the API?

Are you using the test API at http://api06.dev.openstreetmap.org/ rather than production for the testing of your app?

Shaun

On 2 May 2010, at 19:33, IgnacioZ wrote:

> Hi, I am currently testing a new POI editor I'm developing.
> 
> I have encountered some problems when I upload POI through the API. Sometimes (not always) I am getting errors of this kind:
> 
> ActiveRecord::StatementInvalid: PGError: ERROR:  insert or update on table "current_node_tags" violates foreign key constraint "current_node_tags_id_fkey"
> DETAIL:  Key (id)=(717587768) is not present in table "current_nodes".
> : INSERT INTO "current_node_tags" ("k", "v", "id") VALUES(E'name', E'Caseratto', 717587768) RETURNING "id"
> 
> Does anyone know if it is a bug, or if there is any issue with adding POI through the API? If it is a bug, is there any workaround?
> 
> Thanks in advance,
> Ignacio.
> _______________________________________________
> talk mailing list
> talk at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/talk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20100502/cdbec5a7/attachment.html>


More information about the dev mailing list