Constant 404 error with changeset/#id/upload

I’m trying to build a web app that will allow the user to change attributes of specific openstreetmap buildings. I can’t get the changeset/id/upload to work. I keep comparing the headers and payloads for similar requests on https://master.apis.dev.openstreetmap.org/ and everything matches up.

I first call a create changeset request

Request info 
Request URL:https://master.apis.dev.openstreetmap.org/api/0.6/changeset/create
Request Method:PUT
Status Code:200 OK
Remote Address:...
Referrer Policy:no-referrer-when-downgrade

Accept:*/*
Accept-Encoding:gzip, deflate, sdch, br
Accept-Language:en-US,en;q=0.8
Authorization: ...
Cache-Control:no-cache
Connection:keep-alive
Content-Length:373
Content-Type:text/xml
Host:master.apis.dev.openstreetmap.org
Origin:http://localhost
Pragma:no-cache
Referer:http://localhost/app/index.html?locale=en
User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36Accept:*/*
Payload  
<osm><changeset version="0.6" generator="AppName"><tag k="created_by" v="AppName 0.3"/><tag k="comment" v="a comment..."/></changeset></osm>
Response 
103202

Then I send an upload request

Request info 
Request URL:https://master.apis.dev.openstreetmap.org/api/0.6/changeset/103202/upload
Request Method:POST
Status Code:404 Not Found
Remote Address:...
Referrer Policy:no-referrer-when-downgrade

Accept:*/*
Accept-Encoding:gzip, deflate, br
Accept-Language:en-US,en;q=0.8
Authorization:...
Cache-Control:no-cache
Connection:keep-alive
Content-Length:303
Content-Type:text/xml
Host:master.apis.dev.openstreetmap.org
Origin:http://localhost
Pragma:no-cache
Referer:http://localhost/app/index.html?locale=en
User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36

Payload 
<osmChange version="0.6" generator="AppName"><create/><modify><way id="295867444" version="1" changeset="103202"><nd ref="2996291733"/><nd ref="2996291734"/><nd ref="2996291735"/><nd ref="2996291736"/><nd ref="2996291733"/><tag k="building" v="house"/></way></modify><delete if-unused="true"/></osmChange>

I hid some info from the details above.

The documentation says that 404 errors occur when :

Can anyone help me discover what I’m doing wrong here? Only thing I can think of right now is that localhost may be specifically blocked from making upload requests. If it helps, I’m using osm-auth for authentication (https://github.com/osmlab/osm-auth) although I doubt that’s the issue since the changeset create goes through properly.

Thanks for the help

staubibr

Alright, I managed to figure it out. The problem was indeed with https://master.apis.dev.openstreetmap.org/ url. It doesn’t contain the data for the area I was working with. I was receiving 404s because it couldn’t find the nodes and ways I was referring to in my requests.

Hope it helps someone down the line.

staubibr