[OSM-dev] MySQL error message in OSM API response
Michael Strecke
MStrecke at gmx.de
Sun Aug 6 13:01:17 BST 2006
While trying to upload a way to the OSM server, I got the following
error message:
- - -
connect: (www.openstreetmap.org, 80)
send: 'PUT /api/0.3/way/0 HTTP/1.1\r\nHost:
www.openstreetmap.org\r\nContent-Length: 86\r\nAccept-Encoding:
gzip\r\nAuthorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\nUser-Agent:
pyosmeditor/0.1\r\n\r\n'
send: "<osm version='0.3'>\n<way id='0'>\n<seg id='317471' />\n<seg
id='312640' />\n</way></osm>\n"
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Sun, 06 Aug 2006 11:53:11 GMT
header: Server: Apache/2.0.54 (Debian GNU/Linux) mod_ruby/1.2.4
Ruby/1.8.2(2005-04-11)
header: Transfer-Encoding: chunked
header: Content-Type: text/plain
response: Error code:
1064
Error message:
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near '' at line 1
nil
- - -
After some more tests, it became clear, that the OSM server expects at
least one tag with the way data.
If this is the case, the data should have been rejected with the
original HTTP return code.
This seems more like an unexpected response to data which is slightly
different than the script has expected it to be.
Michael
More information about the dev
mailing list