Skip to content

MIME Type Errors in H2o Lightwave example #1966

Answered by mturoci
jg-xyz asked this question in Q&A
Discussion options

You must be logged in to vote

Hey!

Welcome to Windows lol. This is caused by bad windows registry defaults. You can read more here.

TLDR: You either need to change your registry or hack around it:

import mimetypes
mimetypes.add_type('application/javascript', '.js')
mimetypes.add_type('text/css', '.css')
mimetypes.add_type('image/svg+xml', '.svg')

I saw on the release page for non-light wave that there was a fix implemented for this on Windows in v0.25.0

Correct. However, this does only apply to H2O Wave since it comes with its own server that hosts the assets like JS/CSS etc.

Loading module from “http://127.0.0.1:8000/wave-static/index-98d98a8e.js” was blocked because of a disallowed MIME type (“text/plain”)

Since…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jg-xyz
Comment options

@mturoci
Comment options

@jg-xyz
Comment options

Answer selected by jg-xyz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants