[josm-dev] "Only method post is supported on this URI"

Maarten Deen mdeen at xs4all.nl
Sun May 31 15:56:07 BST 2009


Shaun McDonald wrote:
> On 31 May 2009, at 14:04, Maarten Deen wrote:
> 
>> Russ Nelson wrote:
>>> Maarten Deen writes:
>>>> I spent some time adding and changing stuff in JOSM, but when  
>>>> uploading I get
>>>> the message "Only method post is supported on this URI".
>>>> This happens to me with the josm-latest (and the version from  
>>>> 21-05-2009).
>>>>
>>>> What is this error, what is going wrong?
>>>
>>> I don't know either, but deleting my 'preferences' file got uploading
>>> to work again.
>>
>> Thanks, but that made it worse initially. It just spat out errors  
>> trying to
>> upload. But I did see what was wrong: the upload URL has changed from
>> http://www.openstreetmap.com/api to http://api.openstreetmap.org/api  
>> (notice the
>> www->api and com->org).
> 
> Why have you been using www.openstreetmap.com? This has never been the  
> default in JOSM, as far as I'm aware.

Probably because in the olden days there were no default settings and this was 
one of the URLs (_the_ URL?) to be used. Or I played around with it in the past 
and never knew it should be .org, I don't know. It always worked and now all of 
a sudden it doesn't.

> You need to be using either http://www.openstreetmap.org/api or http://api.openstreetmap.org/api 
>   for it to work now that all other domains (including osm.org and  
> openstreetmap.com) redirect to www.openstreetmap.org.
> 
> Maybe we need to add this to http://josm.openstreetmap.de/wiki/StartupPageSource 
>   ?

I saw that JOSM now fills the .org address as default, but if in the future the 
API URL changes than it would be a helpful addition.
And in the OSM wiki too.

Regards,
Maarten





More information about the josm-dev mailing list