-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Browser content display blocked by MIME type mismatch #3077
Comments
Hi @amrosado! Thanks for the report. The content type is inferred from The Could you tell us the output of
on your machine, and also please confirm what the Also, please do provide the |
My diagnose_tensorboard.py output is included in the first post like asked for. I don't think I have it working correctly because it doesn't find my installed tensorboard module for the virtualenv I'm using. My headers for index.js without changing the html_util.py: Response:
Request:
The output of ``` python -c "import mimetypes; print(list(mimetypes.guess_type('index.js')))" ````:
How does mimetypes determine the mimetype? It doesn't throw an exception even with an invalid url. |
Great, thanks.
It guesses based on the filename given a pre-defined list of MIME types The The fact that the Good luck! :-) |
Thanks for the explanation. I have this same problem on two different windows installations. After changing the value in my registry tensorboard works like expected. |
Great; glad to hear it, and thanks for letting us know! Sounds like some
At least one user is claiming that the errant application is Visual |
Issue description
For anyone who is interested, I had a problem running tensorboard in Windows preventing anything from displaying in every browser except for internet explorer. The error I received in Firefox Nightly is the following:
Tensorboard provides files from a prepared zip file (webfiles.zip), but these files were being provided with the 'text/plain' content-type header preventing browsers from using the javascript correctly. The ways to fix this is to go to the following file: tensoboard/backend/http_util.py and change to the following:
You could also disable nosniff by commenting out the following:
to
I believe this might be similar to another issue referencing the projector.
The diagnose_tensorboard.py information is not useful. For this particular project, I'm attempting to use tensorboard for a pytorch project.
Environment information (required)
Diagnostics output
The text was updated successfully, but these errors were encountered: