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

Getting a blank page whether I launch the application via Jupyter Notebook or directly from the command line #225

Open
CecileFiche opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels
bug: critical App is unusable scope: front Related to Pixano frontend

Comments

@CecileFiche
Copy link

Launching app = App(directory_path) gives no error : GET requests gives a 200 status. So the application seems to work correctly. But localhost:8000 corresponds to a blanck page. Nothing is displayed.

I'm using the latest up-to-date version of the Pixano application (v0.5.1) and pixano-inference (0.3.1) to annotate data based on SAM. Everything works fine (calculating masks and embeddings as well as creating the database) until the step of launching the application. When I navigate to port 8000, I don't see any apparent errors, just a blank page. However, all routes seems to work correctly. Upon closer inspection, I notice that some JS files cannot be downloaded (I've checked, I have them locally), and therefore the script located in the app's index.html that displays the datasets, etc., does not execute. I'm using Chrome, but I have the same problem on Edge. I can't test it on Firefox. Here are the errors I'm getting:

Uncaught (in promise) TypeError: Failed to fetch dynamically imported module : http://0.0.0.1:8000/_app/immutable/entry/start.XXXX.js

Failed to load module script: Expected a Javascript module script but the server responded start.XXX.js with a MIME type of "text/plain". Strict MIME type checking is enforced for module scripts per HTML spec.

(I got similar error for the others JS files)

I replaced the dynamical name of the JS file by XXXX for simplicity but i confirm it is not xxxx.

Do you have any ideas to solve this problem ? Thank you !

@BertrandRenault BertrandRenault self-assigned this Apr 3, 2024
@BertrandRenault BertrandRenault added scope: front Related to Pixano frontend bug: critical App is unusable labels Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: critical App is unusable scope: front Related to Pixano frontend
Projects
None yet
Development

No branches or pull requests

2 participants