mmr
1
hi,
I am trying to upload a GPX file to the public dev server via the API. Unfortunately I am only getting as response a 500 error code. I sniffed the network traffic. Maybe someone can see the error reason or can give me a hint.
Regards
Michael
+++++++++start of data ++++++++++++++++++++++++++++++++++++++++++++++++++++
POST /api/0.6/gpx/create HTTP/1.1
Authorization: Basic xxxxx
Content-Type: multipart/form-data; boundary=----------------------------d10f7aa230e8
User-Agent: Free User Agent
Accept: text/html, image/gif, image/jpeg, *; q=.2, /; q=.2
Host: api06.dev.openstreetmap.org
Content-Length: 7865
Connection: Close
------------------------------d10f7aa230e8
Content-Disposition: form-data; name=âfileâ; filename=âtest.gpxâ
Content-Type: application/octet-stream
<?xml version="1.0" encoding="utf-8"?>
test
37.1480713
2010-09-18T12:53:43.1924714+02:00
36.6674805
2010-09-18T12:53:43.1924714+02:00
37.6286621
2010-09-18T12:53:43.1924714+02:00
38.109375
2010-09-18T12:53:43.1924714+02:00
39.0706787
2010-09-18T12:53:43.1924714+02:00
39.0706787
2010-09-18T12:53:43.1924714+02:00
39.0706787
2010-09-18T12:53:43.1924714+02:00
38.5900879
2010-09-18T12:53:43.1924714+02:00
40.5128174
2010-09-18T12:53:43.1924714+02:00
40.5128174
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
42.9160156
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
41.473999
2010-09-18T12:53:43.1924714+02:00
40.9934082
2010-09-18T12:53:43.1924714+02:00
38.5900879
2010-09-18T12:53:43.1924714+02:00
38.109375
2010-09-18T12:53:43.1924714+02:00
37.6286621
2010-09-18T12:53:43.1924714+02:00
38.109375
2010-09-18T12:53:43.1924714+02:00
38.109375
2010-09-18T12:53:43.1924714+02:00
40.9934082
2010-09-18T12:53:43.1924714+02:00
41.473999
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
44.3580322
2010-09-18T12:53:43.1924714+02:00
42.9160156
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
40.5128174
2010-09-18T12:53:43.1924714+02:00
40.0321045
2010-09-18T12:53:43.1924714+02:00
40.5128174
2010-09-18T12:53:43.1924714+02:00
40.0321045
2010-09-18T12:53:43.1924714+02:00
41.473999
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
40.5128174
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
42.4354248
2010-09-18T12:53:43.1924714+02:00
41.9547119
2010-09-18T12:53:43.1924714+02:00
41.473999
2010-09-18T12:53:43.1924714+02:00
41.473999
2010-09-18T12:53:43.1924714+02:00
------------------------------d10f7aa230e8
Content-Disposition: form-data; name="description"
beschreibung
------------------------------d10f7aa230e8
Content-Disposition: form-data; name=âtagsâ
merkmale
------------------------------d10f7aa230e8
Content-Disposition: form-data; name=âvisibilityâ
private
------------------------------d10f7aa230e8â
++++++ end of data ++++++++++++++++++++++++++++
b166er
(John Doe)
2
OT: itâs bad idea to post your Authorization token in header!!! itâs only base64-encoded not safe and this forum is public! change your password now and edit this post!
i have the same Question.
Any Idea ?
I âwiresharkâ a josm upload which work correctly and tried to clone the network comunication.
But it dont work. I attach my both Session,maybe somebody has an Idea.
JOSM Session:
And now the session of my little Python app:
And YES, i deleted my testtrack.
With what kind of program? Script? Language?
Please give an exact link to the documentation of that API.
Nothing more? Not a description of the error? If not then did you look up what this error means? Please tell.
If this is your own program or script: wouldnât it be better you showed your code?
In my case python. I want to write a logger for my Symbian Phone.
Should be part of my IGCLogger.
http://sites.google.com/site/pys60software/igclogger-features
http://wiki.openstreetmap.org/wiki/API_v0.6#Uploading_Traces
In my post before you see the complete Error message.
The python code:
Please give a quote.
But then⊠this was a question for mmr. What makes you think it is the same error?
i just wiresharked a ârouteconverterâ upload.
Same server response: