[OSM-dev] MySQL error message in OSM API response
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
- - -
connect: (www.openstreetmap.org, 80)
send: 'PUT /api/0.3/way/0 HTTP/1.1\r\nHost:
gzip\r\nAuthorization: Basic xxxxxxxxxxxxxxxxxxxxxxxxxxxx\r\nUser-Agent:
send: "<osm version='0.3'>\n<way id='0'>\n<seg id='317471' />\n<seg
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
header: Transfer-Encoding: chunked
header: Content-Type: text/plain
response: Error code:
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
- - -
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.
More information about the dev