What steps will reproduce the problem?

become confused by "line 1 column 1: content is not allowed in prolog" error message

What is the expected result?

JOSM behaves like overpass turbo that on Export to JOSM in this situation shows

It looks like if this query will not return OSM data in XML format with metadata. Editors like JOSM require the data to be in that format, though.
overpass turbo can help you to correct the query by choosing "repair query" below.

What happens instead?

[17:43] <moltonel> Howdy, is there a know issue with download-from-overpass feature in JOSM ? I'm getting a "line 1 column 1: content is not allowed in prolog" error message for a query straight out of the wizard. Using josm 13265.
[17:44] <MK> moltonel: can you post link to query?
[17:45] <moltonel> http://overpass-turbo.eu/s/v5G
[17:45] <MK> moltonel: what happens if you select export and "load data into an OSM editor: JOSM"?
[17:46] <maxerickson> moltonel: get rid of the out:json, josm is rejecting the download.
[17:46] <moltonel> maxerickson: MK: thanks, that was it.

I think this was just a temporary problem of the overpass server. Now the example queries work for me. (However no objects are found as there a no objects tagged historic=ringfort in the database at all.)

Add Comment

This ticket has been modified since you started editing. You should review the
other modifications which have been appended above,
and any conflicts shown in the preview below.
You can nevertheless proceed and submit your changes if you wish so.