This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

404 error on GPX upload API

0

I develop iOS App by Objective-C that have function to upload GPX file as GPS trace.

When I used this app at May 4th, this app worked well. But now, the GPX upload function in this app shows 404 error by calling "POST /api/0.6/gpx/create" of OSM API. ( I noticed the error May 20th.) In this period, I didn’t change any source of program.

Did something change on server and API in this period, or nothing? Or please let me know the solution of the error if you know.

Device : iPhone SE, iPhone 6s and iPad OS version : iOS 11.3.1(latest) and 11.1

The function to upload GPX file is used NSURLSession and NSMutableURLRequest(Apple’s standard SDK) to call “POST /api/0.6/gpx/create” of OSM API. I re-compiled this app by latest Xcode but 404 error was still occurred.

asked 29 May '18, 14:53

ao_zeal's gravatar image

ao_zeal
16112
accept rate: 0%


One Answer:

3

Are you using http: or https: ?

answered 29 May '18, 15:01

EdLoach's gravatar image

EdLoach ♦
19.5k16156280
accept rate: 22%

I use http to access API.

(30 May '18, 13:08) ao_zeal
2

My app did well to change http to https!! Thanks so much!

(30 May '18, 13:21) ao_zeal

Source code available on GitHub .