[OSM-dev] Changeset close: API returned status code 411 (Length Required)

Eddy Petrișor eddy.petrisor at gmail.com
Thu Jul 23 15:43:57 BST 2009


Hello,

Today, while importing some data[1] with places in the Bacău county in
Romania, I got at the end of the import, during the changeset close
operation the error code 411 - Length Required.

The stack looked like this:

Traceback (most recent call last):
  File "./OsmLocImport.py", line 372, in <module>
    sys.exit(main())
  File "./OsmLocImport.py", line 368, in main
    readAndProcessSirutaCsv(file, source=source, comment=comment)
  File "./OsmLocImport.py", line 328, in readAndProcessSirutaCsv
    api.ChangesetClose()
  File "./OsmApi.py", line 328, in ChangesetClose
    result =
self._put("/api/0.6/changeset/"+str(self._CurrentChangesetId)+"/close", u"")
  File "./OsmApi.py", line 395, in _put
    return self._http('PUT', path, True, data)
  File "./OsmApi.py", line 388, in _http
    raise Exception, "API returns unexpected status code
"+str(response.status)+" ("+response.reason+")"
Exception: API returns unexpected status code 411 (Length Required)


So it seems the API returned this code as and answer to this:
'PUT /api/0.6/changeset/.../close'



I've looked for this error code but it seems is not listed:

http://wiki.openstreetmap.org/wiki/OSM_Protocol_Version_0.6#Close:_PUT_.2Fapi.2F0.6.2Fchangeset.2F.23id.2Fclose


What does this mean?




[1] http://www.openstreetmap.org/browse/changeset/1914506
-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090723/76247275/attachment.pgp>


More information about the dev mailing list