Modify ↓
#16759 closed task (needinfo)
Upload Failed - Code=412 - Precondition failed: Cannot create way: data is invalid
Reported by: | lmason_aph.org | Owned by: | lmason_aph.org |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | latest |
Keywords: | template_report upload | Cc: |
Description ¶
What steps will reproduce the problem? ¶
- Trying to upload one room with many POI's
What is the expected result? ¶
Wish for upload to go into iD Indoor.
What happens instead? ¶
Error message (attached)
Please provide any additional information below. Attach a screenshot if possible. ¶
URL:https://josm.openstreetmap.de/svn/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2018-08-22 19:44:25 +0200 (Wed, 22 Aug 2018) Build-Date:2018-08-22 17:46:33 Revision:14178 Relative:URL: ^/trunk Identification: JOSM/1.5 (14178 en) Windows 10 64-Bit OS Build number: Windows 10 Enterprise 1803 (17134) Memory Usage: 247 MB / 247 MB (62 MB allocated, but free) Java version: 1.8.0_181-b13, Oracle Corporation, Java HotSpot(TM) Client VM Screen: \Display0 1920x1080, \Display1 1920x1080, \Display2 1920x1080 Maximum Screen Size: 1920x1080 VM arguments: [-Djava.security.manager, -Djnlp.application.href=https://josm.openstreetmap.de/download/josm.jnlp, -Djava.util.Arrays.useLegacyMergeSort=true, -Djnlp.tk=awt, -Djnlpx.jvm=<java.home>\bin\javaw.exe, -Djnlpx.splashport=50150, -Djnlpx.home=<java.home>\bin, -Djnlpx.remove=false, -Djnlpx.offline=false, -Djnlpx.relaunch=true, -Djnlpx.session.data=%UserProfile%\AppData\Local\Temp\session5973405461689361158, -Djnlpx.heapsize=NULL,NULL, -Djava.security.policy=file:<java.home>\lib\security\javaws.policy, -DtrustProxy=true, -Djnlpx.origFilenameArg=%UserProfile%\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\56\1ee8cfb8-788ff6d8] Dataset consistency test: [WARN - ZERO NODES] Way {Way id=-39113 version=0 MV nodes=[]} has zero nodes Plugins: + QuickLabel (18) + apache-commons (34506) + auto_tools (1529260859) + buildings_tools (34572) + imagery_offset_db (34506) + importvec (34520) + indoorhelper (34522) + jts (34524) + namemanager (34532) + photoadjust (34543) + utilsplugin2 (34506) Tagging presets: + https://josm.openstreetmap.de/josmfile?page=Presets/OSMRookie&zip=1 Map paint styles: + <josm.pref>\styles\sit.mapcss + <josm.pref>\styles\sit.mapcss + <josm.pref>\styles\sit.mapcss Validator rules: + <josm.pref>\validator\indoorhelper.validator.mapcss Last errors/warnings: - W: Cannot lock cache directory. Will not use disk cache - W: No configuration settings found. Using hardcoded default values for all pools. - E: Error header: Precondition failed: Cannot create way: data is invalid. - W: Error header "Precondition failed: Cannot create way: data is invalid." did not match with an expected pattern - E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.> - E: Precondition violation - <html>Uploading to the server <strong>failed</strong> because your current<br>dataset violates a precondition.<br>The error message is:<br>ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.></html> - E: Error header: Precondition failed: Cannot create way: data is invalid. - W: Error header "Precondition failed: Cannot create way: data is invalid." did not match with an expected pattern - E: org.openstreetmap.josm.io.OsmApiException: ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.> - E: Precondition violation - <html>Uploading to the server <strong>failed</strong> because your current<br>dataset violates a precondition.<br>The error message is:<br>ResponseCode=412, Error Header=<Precondition failed: Cannot create way: data is invalid.></html>
Change History (9)
by , 7 years ago
Attachment: | JOSM message 9-20.png added |
---|
comment:1 by , 7 years ago
Keywords: | upload added |
---|---|
Owner: | changed from | to
Status: | new → needinfo |
Summary: | Upload Failed - Response Code=412 ??? → Upload Failed - Code=412 - Precondition failed: Cannot create way: data is invalid |
Please attach the .osm file you can't upload.
comment:2 by , 7 years ago
Priority: | blocker → normal |
---|
comment:3 by , 7 years ago
Resolution: | → needinfo |
---|---|
Status: | needinfo → closed |
comment:4 by , 7 years ago
Some of the ways in this file have no nodes, e.g.
<way id='-40245' action='modify' visible='true'> </way> <way id='-40247' action='modify' visible='true'> </way> <way id='-40249' action='modify' visible='true'> </way>
comment:5 by , 7 years ago
Validator seems to loop in the self-intersecting ways test, even with a corrected version without empty ways.
comment:6 by , 7 years ago
two ways have far too many nodes: -40217 and -40219
This dataset is really invalid.
Note:
See TracTickets
for help on using tickets.
Screen shot of pop-up