maproulette / maproulette/mr-cli
Improve error message
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4
- Forks
- 3
- Avg merge
- 23h 21m
- Merged PRs (30d)
- 1
Description
Hi, here is the error message I got:
mr cooperative tag oneway.osm --out oneway.geojson
- Initialize
hot here oneway.osm {
_: [ 'cooperative', 'tag' ],
rfc7464: true,
out: 'oneway.geojson',
'input-files': [ 'oneway.osm' ],
inputFiles: [ 'oneway.osm' ],
'$0': 'mr'
}
- oneway.osm: 0/223 elements
- oneway.osm: 0/223 elements
× oneway.osm: Failed to retrieve element version: way/24462453/undefined
I was struggling with this error message. I was thinking about a connection/internet error.
Then I finally read over and over the message and figure it out that only the "version" of my items are missing and not the ids.
So I finally changed the end of my overpass query from out body geom; to out meta geom;
And it fixed my issue. Can you please improve the error message? May be to suggest to the user that some "metadata" are missing.
Have a nice day 👍 And TY for this excellent tool ❤️
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the reported mr cooperative tag oneway.osm --out oneway.geojson command with an Overpass result using out body geom;, then compare it with out meta geom;. Trace where the Failed to retrieve element version message is produced. Done means the error explains that required metadata, such as the element version, is missing and points users toward requesting metadata.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100