Closed AnaBelgun closed 5 years ago
@kring would you please finalise the investigation on this one?
Last week, AREMI was showing an error when visiting the share link above. The error was related to accessing https://spatial.industry.nsw.gov.au/arcgis/rest/services/Bioenergy_Assessment/Cropping_All_Straw_Hay_Silage_Residues/MapServer, and the server was reporting an error for that layer. Today its working because that server is happy again. But AREMI is still accessing that URL when visiting this share link, which is surprising because nothing cropping-related is included in the share link at all.
Here's what's happening:
New South Wales -> Cropping -> All Residues - Cropping Overview
dataset is an esri-mapServer-group
.All Residues - Cropping Overview
dataset is a normal group
rather than a MapServer group. And it has an item inside it called SA2 Total All Straw, Hay and Silage (t)
.All Residues - Cropping Overview
. In the new catalog that's a MapServer group, so it does a request to https://spatial.industry.nsw.gov.au/arcgis/rest/services/Bioenergy_Assessment/Cropping_All_Straw_Hay_Silage_Residues/MapServer. If that URL fails, the group load fails, and so the JSON init fails.So the solution here is adapt this code https://github.com/TerriaJS/aremi-natmap/blob/c5445aeefd5b2b446e4a620e0019d56d43eca5c4/index.js#L64 for the AREMI catalog URLs. This will likely fix other bugs as well where the catalog appears to (partially?) revert to an old version when visiting share URLs.
@krin Is the same happening with this share link (pointing to a different dataset/server): https://nationalmap.gov.au/renewables/#share=s-7olCH2Vgiye5UYwe I might have made a mistake in not mentioning this example in the main issue description.
Is the same happening with this share link (pointing to a different dataset/server):
Yes looks that way @AnaBelgun.
It seems that share functionality is broken for some/a layers on AREMI: https://nationalmap.gov.au/renewables/#share=s-oDPMo1jDBBtwBNhD
Go to any data layer, share, open in new tab; error message: