Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Bug] Tachidesk serving javascript with wrong mime type #758

Closed
qu1ck opened this issue Nov 5, 2023 · 2 comments · Fixed by #764
Closed

[Bug] Tachidesk serving javascript with wrong mime type #758

qu1ck opened this issue Nov 5, 2023 · 2 comments · Fixed by #764
Labels
bug Something isn't working

Comments

@qu1ck
Copy link

qu1ck commented Nov 5, 2023

Device information

  • Tachidesk version: v0.7.0-r1411
  • Server Operating System: docker image
  • Server Desktop Environment: N/A
  • Server JVM version: bundled with docker image
  • Client Operating System: Windows
  • Client Web Browser: chrome 119.0.6045.105

Steps to reproduce

This does not happen immediately after server is started. But after a day or a few (possibly related to webui auto updating) this starts happening:

  1. Load the front page - loads fine
  2. Open any of the tabs or mangas in a new tab - white screen
    When inspecting browser dev console of a white screen the following error is shown:
Failed to load module script: Expected a JavaScript module script but the server responded with a MIME type of "text/html". Strict MIME type checking is enforced for module scripts per HTML spec.

Checking network tab shows that it indeed serves index-xxxxx.js as text/html

For some reason the same file is served as application/javascript if I load the root url and the page works. For any other url - white screen.

Expected behavior

Pages load

Actual behavior

Browser complains about wrong mime type for javascript and refuses to load the page.

@qu1ck qu1ck added the bug Something isn't working label Nov 5, 2023
@Syer10
Copy link
Collaborator

Syer10 commented Nov 5, 2023

@schroda Any ideas?

@schroda
Copy link
Collaborator

schroda commented Nov 5, 2023

nope, but someone else runs into the same issue (support thread in discord) and uses docker as well, so maybe connected to docker?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants