Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

api.simile-widgets.org not responding #193

Open
jjon opened this issue Feb 21, 2019 · 19 comments
Open

api.simile-widgets.org not responding #193

jjon opened this issue Feb 21, 2019 · 19 comments

Comments

@jjon
Copy link

jjon commented Feb 21, 2019

server down?

@karger
Copy link
Member

karger commented Feb 21, 2019 via email

@jjon
Copy link
Author

jjon commented Feb 21, 2019

Thanks for responding so swiftly David. But I'm still not getting any response from api.simile-widgets.org

@karger
Copy link
Member

karger commented Feb 21, 2019 via email

@lmorillas
Copy link
Contributor

lmorillas commented Feb 22, 2019 via email

@karger
Copy link
Member

karger commented Feb 22, 2019 via email

@jjon
Copy link
Author

jjon commented Feb 22, 2019

I made Exhibit the centerpiece of a history course I'm teaching, and now I'm standing around with egg on my face. This makes more urgent my failed attempts to host all the software locally. I've broken my teeth on this several times. I have no trouble hosting Exhibit by itself, and Timeline by itself, but I've repeatedly failed to get an Exhibit with both Map and Timeline to run locally. Whenever I try to run a time-extension Exhibit reaches out to api.simile-widgets.org for the simile-ajax software. I can't seem to figure out how to point it at a local source.

I've attached below the <head> from my ongoing experimental exhibit in the hope that the assembled wise here can give me a hint as to what I'm doing wrong. Perhaps there's an example out there somewhere, or some documentation?

This is the <head> that works:

    <script type="text/javascript" src="//api.simile-widgets.org/exhibit/HEAD/lib/jquery.js"></script>

    <script src="//api.simile-widgets.org/exhibit/HEAD/exhibit-api.js"
            type="text/javascript">
    </script>
    <script src="//api.simile-widgets.org/exhibit/HEAD/extensions/time/time-extension.js"
            type="text/javascript" 
            rel="exhibit-extension">
    </script>
    <link href="//api.simile-widgets.org/exhibit/HEAD/extensions/map/map-extension.js"
            data-ex-apikey="AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk"
            type="text/javascript" 
            rel="exhibit-extension" />
            
    <link 
        rel="exhibit/data" 
        type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/1qZ6Sgu2qcKy-Rbc-L_5YN-zJD2jErOw2BUhur3-yWlk/od6/public/basic?hl=en_US&alt=json-in-script"
        data-ex-converter="googleSpreadsheets" />

This does not:

<!-- ATTEMPT TO LOAD ALL JS LOCALLY STILL BREAKS ON SIMILE-AJAX/TIMELINE -->
    <script src="../../exhibit-master3.1.2-rc3/scripted/src/lib/jquery-1.12.4.min.js"
            type="text/javascript">
    </script>
	<script type="text/javascript">
		Timeline_ajax_url="../../timeline-2.3.1/ajax/2.2.4/simile-ajax-api.js";
		Timeline_urlPrefix="../../timeline-2.3.1/timeline/2.3.1/";       
		Timeline_parameters="bundle=false";
	</script>
    <script src="../../exhibit-master3.1.2-rc3/scripted/src/exhibit-api.js?bundle=false"
            type="text/javascript">
    </script>
    <script src="../../simile-common-master/src/webapp/api/simile-ajax.js"
            type="text/javascript">
    </script>
    <script src="../../exhibit-master3.1.2-rc3/scripted/src/extensions/time/time-extension.js?bundle=false"
            type="text/javascript" 
            rel="exhibit-extension">
    </script>
    <link 
        rel="exhibit-extension"
        type="text/javascript" 
        href="../../exhibit-master3.1.2-rc3/scripted/src/extensions/map/map-extension.js?bundle=false"
        data-ex-apikey='AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk' />

At the risk of boring you further: an experiment at a different address also fails. I couldn't find a path for the timeline software that would work AND not look elsewhere for simile-ajax:

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Western Civilization</title>
    <script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="../../common-js/timeline-2.3.1/ajax/api/simile-ajax-api.js"></script>
    <script src="../../common-js/exhibit-dist/exhibit-api.js" type="text/javascript"></script>
    <script src="../../common-js/exhibit-dist/extensions/time/time-extension.js"
            type="text/javascript" 
            rel="exhibit-extension"
            bundle="false">
    </script>
    <link href="../../common-js/exhibit-dist/extensions/map/map-extension.js"
            data-ex-apikey="AIzaSyAFf2dBmbxI_2Jfs2ty-05I__yDubzE6Hk"
            type="text/javascript" 
            rel="exhibit-extension" />
            
    <link 
        rel="exhibit/data" 
        type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/15CarxbOMuO0LIPYf4pXzRjTHD2X7EvafY1Hsf2HWnwE/1/public/basic?hl=en_US&amp;alt=json-in-script#gid=115609054"
        data-ex-converter="googleSpreadsheets" />

@karger
Copy link
Member

karger commented Feb 22, 2019 via email

@karger
Copy link
Member

karger commented Feb 22, 2019 via email

@jjon
Copy link
Author

jjon commented Feb 22, 2019

Thanks David. I really appreciate your trying to help. I just wish I knew what to do with that. If I plop it in naked with just my spreadsheet link, I get multiple Type errors : TypeError: Cannot read property 'createFromDOM' of undefined and the trace always points to line 1 of your exhibit-api.js

also Unknown viewClass: Map

Now I see your comment of a moment ago. That would sure save my bacon for now if it's not too much trouble

@jjon
Copy link
Author

jjon commented Feb 24, 2019

Thanks David, for trying to share with me your copies of the Exhibit libraries. I thought I'd try that to see if I could get any clues on how to host the software locally. But, as you can see from the attached clip, using your copies results in the same problem: something calls out to the api.simile-widgets.org server to get the ajax and the timeline libraries. I sure would like to find away around that.
image

@karger
Copy link
Member

karger commented Feb 25, 2019 via email

@sayanmitracode
Copy link

Any updates on this? My publications page uses exhibit + bibtex and is now broken.
http://mitras.ece.illinois.edu/pubs.html

@karger
Copy link
Member

karger commented Feb 25, 2019 via email

@sayanmitracode
Copy link

sayanmitracode commented Feb 25, 2019

Thanks, David. I tried both current and 3.1.0 but he page does not load the database. Did anything else change? First few lines now look like this:

<script src="http://api.simile-widgets.org/exhibit/3.1.0/exhibit-api.js" type="text/javascript"></script>

@jjon
Copy link
Author

jjon commented Feb 26, 2019

Thanks again David. I examined your Presidents example and tried about a million permutations starting from your directions with no success. What finally worked, (or it seems to have worked) was this (NB: to make my TL scrolling/Map modifications work, I had to load jQuery up front):

The <head> element for the page at http://neolography.com/itinExhibitSketchIII.html contains this:

    <script src="../exhibit-dist/lib/jquery-1.12.4.min.js"
            type="text/javascript">
    </script>
    
    <script src="../exhibit-dist/exhibit-api.js"
            type="text/javascript">
    </script>

    <script src="../exhibit-dist/extensions/time/time-extension.js?timelinePrefix=http://neolography.com/Timeline"
            type="text/javascript" 
            rel="exhibit-extension">
    </script>

    <link href="../exhibit-dist/extensions/map/map-extension.js"
            data-ex-apikey="MyOldGoogleMapsAPIKey"
            type="text/javascript" 
            rel="exhibit-extension" />
            
    <link 
        rel="exhibit/data" 
        type="application/jsonp"        href="https://spreadsheets.google.com/feeds/list/1qZ6Sgu2qcKy-Rbc-L_5YN-zJD2jErOw2BUhur3-yWlk/od6/public/basic?hl=en_US&alt=json-in-script"
        data-ex-converter="googleSpreadsheets" />

But the directory structure that supports it looks like this:
image

I sure would love it if you could verify for me that this was indeed successful.

You'll note that I had to name the ajax subdirectory api rather than 2.2.1. I still don't know why, but it does seem to have worked. If you've any further observations on HOW or WHY this works, I'd love to hear about it. If you have any further information on WHY this is so hard, what modifications Zephira may have made, or what the way forward may be for better integrating Timeline into Exhibit. I'd love to hear about that too.

(edit: To make matters even weirder, if you look at the ajax/api directory in a web browser, it will proclaim that you're looking at the "Index of /ajax/2.2.1")

The Timeline visualization is a crucial element of why Exhibit is so useful. When time permits, I'd love to deploy what limited skills I have in trying to bring it up to date with the Exhibit code base. Unless, of course, you could persuade David H. to ride to our rescue.

Again, many thanks for your help.

@Szepi
Copy link

Szepi commented Mar 1, 2019

Any news?

@jjon
Copy link
Author

jjon commented Mar 6, 2019

As of this morning (just in time for my class where I stood again with egg on my face) the server at api.simile-widgets.org is again not responding. Quick like a bunny, I switched to my locally hosted copies of the software, quite sure it wouldn't work, but lo, it worked! The <head> script and link elements I described above, and the directory structure I pictured, works to host an Exhibit with both a Map and a Timeline visualization.

@jjon
Copy link
Author

jjon commented Mar 7, 2019

http://api.simile-widgets.org still not responding as of 4:30. I sure hope you're not paying Amazon much for that "cloud"

edit: simile.mit.edu and simile-widgets.org also dead

@karger
Copy link
Member

karger commented Mar 8, 2019

I think we're back up now, and should stay that way until we figure out a safe migration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants