- Notifications
You must be signed in to change notification settings - Fork5.5k
Fix incorrect MIME/Content-Type for JavaScript on misconfigured Windows systems#4468
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
raeperd commentedMar 12, 2019
thanks! it works very well now! |
ejmoya commentedMar 12, 2019
In w10 I have the same problem but it does not solve only with this. To solve it, I went to the directory"AppData\Local\Programs\Python\Python37\Lib\site-packages\notebook\templates" and edit the file "page.html" on line 18, changing the double quotes with single quotes. After: |
lovettchris commentedMar 15, 2019
I had the blank page problem today, and this PR fixed it, thanks. Just had to do CTRL+F5 to force refresh and my Jupyter notebooks are back in business. Thanks! |
AnMa12 commentedMar 17, 2019
Thank you sir! |
ghost commentedMar 17, 2019
Thank you so much for fixing this, really hope this is merged soon. |
ghernie commentedMar 18, 2019
Thanks a lot mate !! It solved my MINE issue 👍 |
deepandas11 commentedMar 20, 2019
How to use this? |
BLGAmazingJ commentedMar 20, 2019
Thx^_^ |
BLGAmazingJ commentedMar 20, 2019
You need to locate noteapp.py and override that part. |
gaborvecsei commentedMar 23, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks for the fix! ❤️ |
kzq666666 commentedMar 24, 2019
I am still confused about the details of solution |
matt-bernhardt commentedMar 26, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
This sounds like it would solve the problem I've had when starting to work with Jupyter, but I'm not sure how to check out this branch (via pip) to confirm this. I'm trying to use Jupyter with Windows 10 using any of Chrome, Firefox, or Edge. All three browsers exhibit the same behavior - a blank browser window, no apparent errors in the terminal console, but warnings and errors in the browser console relating to MIME type problems. I'm including screenshots here for reference. Edit: paying close attention toBLGAmazingJ and the diff in this PR, I was able to find the right file and make this change manually. Once this was done, I no longer have the described problem. |
minrk commentedMar 27, 2019
Excellent, thank you! |
minrk commentedMar 27, 2019
@meeseeksdev backport to 5.7.x |
…ipt on misconfigured Windows systems
…8-on-5.7.xBackport PR#4468 on branch 5.7.x (Fix incorrect MIME/Content-Type for JavaScript on misconfigured Windows systems)
monocongo commentedMar 27, 2019
I have tried moving my version of notebook back to 5.7.4 but no luck so far. Can someone comment as to how I can build from source into my conda environment, in order to leverage the fix described in the comments above? Or will this fix be included in an upcoming release that I can utilize via BTW I have tried the following command, but it failed with a compilation error regarding a missing "bower" (which I was not able to find/install, so I gave up):
Thanks in advance for any assistance with this! |
minrk commentedMar 28, 2019
Working on publishing 5.7.7 now. nodejs and npm are needed to build notebook from source. |
jamesmyatt commentedMar 28, 2019
Is there a way of fixing the root cause, i.e. that the registry has the wrong mime type? |
minrk commentedMar 28, 2019
I'm not a Windows expert, but fromthis, it appears to be in |
minrk commentedMar 28, 2019
5.7.7 ison pypi |
jamesmyatt commentedMar 28, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks,@minrk . I found it in |
EAly commentedNov 19, 2019
Can anyone help how to apply this solution, i.e how to "add in a mimetypes override for .js files"?! |



Uh oh!
There was an error while loading.Please reload this page.
Problem
Tornado serves JavaScript files with
Content-Type: text/plain, which causes the browser to reject loading the JavaScript, due to Strict MIME checking enabled in the last version. This problem appears to manifest only on Windows hosted notebooks.Solution
Similar to the CSS fix, add in a mimetypes override for .js files
closes#4467