Modify

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#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?

  1. 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=&lt;Precondition failed: Cannot create way: data is invalid.&gt;</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=&lt;Precondition failed: Cannot create way: data is invalid.&gt;</html>

Attachments (2)

JOSM message 9-20.png (43.3 KB ) - added by lmason@… 6 years ago.
Screen shot of pop-up
draw lvl 0.zip (175.2 KB ) - added by Don-vip 5 years ago.
compressed original file

Download all attachments as: .zip

Change History (9)

by lmason@…, 6 years ago

Attachment: JOSM message 9-20.png added

Screen shot of pop-up

comment:1 by Don-vip, 6 years ago

Keywords: upload added
Owner: changed from team to lmason_aph.org
Status: newneedinfo
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 Don-vip, 6 years ago

Priority: blockernormal

comment:3 by Don-vip, 6 years ago

Resolution: needinfo
Status: needinfoclosed

comment:4 by GerdP, 5 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>
Last edited 5 years ago by Don-vip (previous) (diff)

comment:5 by GerdP, 5 years ago

Validator seems to loop in the self-intersecting ways test, even with a corrected version without empty ways.

comment:6 by GerdP, 5 years ago

two ways have far too many nodes: -40217 and -40219
This dataset is really invalid.

comment:7 by GerdP, 5 years ago

Part of the problem was caused by plugin importvec. See #16988.

by Don-vip, 5 years ago

Attachment: draw lvl 0.zip added

compressed original file

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain lmason_aph.org.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.