<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Moving to the dev mailing list.<div><br></div><div>What is the request that you are sending to the API?</div><div><br></div><div>Are you using the test API at <a href="http://api06.dev.openstreetmap.org/">http://api06.dev.openstreetmap.org/</a> rather than production for the testing of your app?</div><div><br></div><div>Shaun</div><div><br><div><div>On 2 May 2010, at 19:33, IgnacioZ wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi, I am currently testing a new POI editor I'm developing.<div><br></div><div>I have encountered some problems when I upload POI through the API. <i>Sometimes (not always)</i> I am getting errors of this kind:</div><div>
<br></div><div><div>ActiveRecord::StatementInvalid: PGError: ERROR: insert or update on table "current_node_tags" violates foreign key constraint "current_node_tags_id_fkey"</div><div>DETAIL: Key (id)=(717587768) is not present in table "current_nodes".</div>
<div>: INSERT INTO "current_node_tags" ("k", "v", "id") VALUES(E'name', E'Caseratto', 717587768) RETURNING "id"</div></div><div><br></div><div>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?</div>
<div><br></div><div>Thanks in advance,</div><div>Ignacio.</div>
_______________________________________________<br>talk mailing list<br><a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>http://lists.openstreetmap.org/listinfo/talk<br></blockquote></div><br></div></body></html>