Binderhub: Preview from nbviewer while loading Binder shows 404 when giving a notebook-file path

Created on 20 Jul 2018  路  8Comments  路  Source: jupyterhub/binderhub

I noticed that when I have created a Binder button that points to a particular notebook in the repository鈥攊.e., I have provided the optional path to a notebook file in https://mybinder.org鈥攖he preview shows an ugly 404 while loading. The notebook eventually loads, but if the user is impatient, they may give up in response to the error message. See screenshots below.

Normal view when launching:
screen shot 2018-07-19 at 7 02 42 pm


View when launching with a path to notebook file:
screen shot 2018-07-19 at 7 04 48 pm

Most helpful comment

Thanks! Good to hear that it now works. I think we should think about updating the logic in our form to remove a leading / if it is there as it is most likely a mistake by the user.

All 8 comments

https://mybinder.org/v2/gh/engineersCode/EngComp1_offtheground/master?filepath=notebooks_en%2F2_Jupyter_strings_and_lists.ipynb works. Note that there is no %2F at the start of the filepath.

How did you generate the link?

Hmm. I entered the file path where it says "Path to a notebook file (optional)" on the My Binder form: /notebooks_en/2_Jupyter_strings_and_lists.ipynb

With that file path, the notebook _does_ open when I click the orange "Launch" button right next to it. And the notebook _does_ open after a while when clicking the binder button, but we see the 404 message while launching.

Entering notebooks_en/2_Jupyter_strings_and_lists.ipynb instead fixes it, yes. Thank you.

Thanks! Good to hear that it now works. I think we should think about updating the logic in our form to remove a leading / if it is there as it is most likely a mistake by the user.

Perhaps we should re-purpose this issue (or close this and open a new one) about the / problem?

Not sure how to state the new issue: those of you who know the code can express it better. From my perspective, it should work whether the user adds or leaves out the /.

@labarba Agreed.

@betatim @choldgraf Let's open an issue if not already open to strip the leading / if typed by user.

@labarba thanks for bringing this to our attention!!! Looks like we've now got #622 to deal with the specific technical bug that you found! Just FYI :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

minrk picture minrk  路  5Comments

yuvipanda picture yuvipanda  路  5Comments

betatim picture betatim  路  3Comments

ashtonmv picture ashtonmv  路  6Comments

yuvipanda picture yuvipanda  路  3Comments