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

Can't download notebook (400 : Bad Request) #318

Closed
christianbrodbeck opened this issue Aug 24, 2019 · 4 comments
Closed

Can't download notebook (400 : Bad Request) #318

christianbrodbeck opened this issue Aug 24, 2019 · 4 comments
Milestone

Comments

@christianbrodbeck
Copy link

When I try to download a notebook as another format (e.g. HTML) I get the error page below (400 : Bad Request -- 'str' object has no attribute 'metadata'). It seems to be specifically related to jupytext:

  • If I create a very simple notebook and download it, that works as expected
  • If I then turn on Jupytext/Pair notebook ... and try to download again I get the error
  • If I then Jupytext/Unpair notebook the error still happens

I could not find anything related to that error. I am relatively new to Jupyter, is there a way to get a traceback for that error? My system is:

  • MacOS
  • jupyter-1.0.0 (conda-forge)
  • jupytext-1.2.1

error

@mwouts
Copy link
Owner

mwouts commented Aug 25, 2019

Hello @christianbrodbeck , thank you for reporting this.

The closest related issue is #118, but yours seems a bit different.

I will have a look when I come back, in one week. Meanwhile you may want to test if the same issue occurs on Binder (give a try with get_started.ipynb at https://mybinder.org/v2/gh/mwouts/jupytext/master/demo).

@christianbrodbeck
Copy link
Author

Thanks @mwouts ! I could not reproduce the issue on Binder. Some further investigation suggests that the error is related to this line in jupyter_notebook_config.py:

c.ContentsManager.notebook_extensions = "ipynb"

The error occurs only when the line is active, and does not occur when it is commented.

@mwouts mwouts added this to the 1.2.2 milestone Aug 30, 2019
@mwouts
Copy link
Owner

mwouts commented Sep 1, 2019

Oh thank you for that precision, it helped me a lot to debug the issue. I have been able to reproduce and fix it.

@mwouts mwouts closed this as completed in 412293f Sep 1, 2019
@christianbrodbeck
Copy link
Author

Great, thanks!

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

2 participants