hello .. i have a thread about the 3d previewers but this seems to be different .. i have recently registered the new previewers (v1.4) in our dataverse .. and getting this error on some of the map images when trying to preview .. these are shapefile zip archives, so not sure how it knows whether to use the zip previewer or the map previewer, but both are installed .. I literally just ran the curl commands here as I usually do .. we don't run them locally .. but maybe should? any ideas on what I messed up?
also a little weird that it displays harvard's footer on the error
It's going to https://dataverse.asu.edu/gdcc.github.io/dataverse-previewers/previewers/v1.4/MapShpPreview.html
Is that what you want? Is that where you're hosting that previewer? On your server itself?
You're seeing Harvard College in the footer because it's a 404. You'd see it here as well: https://dataverse.asu.edu/foobar
Please feel free to open an issue about how the 404 shouldn't show Harvard College (or 2023). The file is here: https://github.com/IQSS/dataverse/blob/v6.2/src/main/webapp/404static.xhtml
okay sorry, i'm confused .. yes we are using the previewers hosted at gdcc and not on our site .. so does the 404 error mean I have done that incorrectly as it is not actually showing the preview of the file? i just used the curl command provided
not so concerned about the harvard college citing .. just want the previewer to work
Ah, it's a bug in the curl command. See how it says this?
"toolUrl":"gdcc.github.io/dataverse-previewers/previewers/v1.4/MapShpPreview.html",
It should be more like this:
"toolUrl":"https://gdcc.github.io/dataverse-previewers/previewers/v1.4/MdPreview.html",
Do you want to make a pull request? :grinning:
ah yea i see it wrong in my db too .. sure i can try to do the pull request :-) .. and will just manually fix in the db first and see if that works
Awesome, please keep us posted.
fixed it directly in the dbย here and it finds the previewer now, but the image just spins
.. adding onto this thread because it is part of the same issue .. however with a little variety now .. :smile: .. we did fix the URL in the db ..
.. but we see another aspect to this .. when we upload the file to a dataset and try to view it .. on our QA site it previews as a "Zip archive" (ie: these examples ..) .. but on our production site it shows as a "Shapefile as zip file" and is trying to preview as per, but just spins and never loads ... (not published yet .. see images)
file-details-fireresultszip.jpg
fire_results_preview.jpg
I noticed in the db .. the URL listed for both ZIP and ELN ZIP previewers is the same .. but they are in a different order .. in QA the db looks like this:
and in prod it looks like this:
.. so, it seems in QA it is previewing this particular zip file as a zip file (and lists it as a "zip archive"), but in prod it lists it as a "Shapefile as zip archive", but i think is trying to view it with a map previewer? .. lol i'm not sure what it's doing!
.. so how does it determine whether to mark it as a "zip archive" or "shapefile zip archive" (and preview it as such), and is it trying to use the map previewer and not working? The file from the original discussion does the same thing .. shows as a zip archive and previews as such in qa and just spins in production.
I hope this makes sense .. any insight on this is appreciated! Do we have something installed incorrectly? (errr pointing to things incorrectly)? Thanks!!
That shapefile map previewer was added in https://github.com/gdcc/dataverse-previewers/pull/36
For "contentType":"application/zipped-shapefile"
oh sorry, yes, i have the shapefile map previewer installed .. i think i just have the wrong URL (copied from here)..
the .md file there says "gdcc.github.io/dataverse-previewers/previewers/betatest/MapShpPreview.html"
and I have "https://gdcc.github.io/dataverse-previewers/previewers/v1.4/MapShpPreview.html"
Right. So is the behavior expected? For a file with "contentType":"application/zipped-shapefile" the shapefile map should be shown. :thinking:
I changed the URL to the one with "betatest" in it .. I verified in the db the contenttype is "application/zipped-shapefile" .. and I believe it tries to show the map but it just spins (like the image above) .. the zip archive file is 67K
There's a lot for my little mind to keep up with. :smiley:
Is the bug that the shapefile map previewer isn't working? We don't even have it installed on our demo server. :sweat_smile: I just checked: https://demo.dataverse.org/api/externalTools
i changed it on the qa site as well, and it still just goes to the zip previewer :big_smile:
Do you want to upload your file to the demo site? Maybe I can go install the shapefile map previewer.
well, there are 2 things ..
in our qa site when i try to preview a file with type "application/zipped-shapefile" it just goes to the zip previewer
in our prod site, when I try to preview a file with type 'application/zipped-shapefile" it seems to try but just spins
the only difference that i can see is that, in the qa and prod sites the order of the previewers installed is a little different
yeah, I noticed that but the order shouldn't matter
we always have some weird thing :sweat_smile:
like that storage system a while back :big_smile:
omg that was a nightmare! :scared:
Which problem are you more interested in solving? The qa one or the prod one?
well i guess the prod one .. we would like for the file to preview before we publish this researcher's dataset .. i am digging through the previewers to see if we have anything configured wrong .. i may just delete them all and re-register them
I guess you could remove the shapefile map previewer if it's buggy. Does it work with any other shapefiles?
yea, that's probably a good idea .. as far as i know it hasn't worked with any other files, but we don't have a lot of those type in there .. i'll remove it and see what happens
Maybe once you publish that dataset you can create an issue about the shapefile map previewer at https://github.com/gdcc/dataverse-previewers and link to the problematic file.
okay i'll do that .. thanks so much!
Last updated: Oct 30 2025 at 06:21 UTC