jenchanws / create-track-map

Create train track map mod for Minecraft (Fabric & Forge)
https://modrinth.com/mod/create-track-map
MIT License
65 stars 19 forks source link

Server returns blank page with 404 status code #54

Open Silveere opened 10 months ago

Silveere commented 10 months ago

Describe the Bug

When attempting to access the application through my web browser, I only receive a blank page with an HTTP status of 404. I can confirm that this isn't a network configuration issue, as it actually establishes an HTTP connection, and I can also access all of the APIs without issue. I am not utilizing any reverse proxy, I am connecting directly to the configured port.

Reproduction Steps

  1. Create a new server with minimal mods installed.
  2. Start the server.
  3. Connect to the locally created web server.
  4. The application doesn't load and just shows a blank page with a 404 status code in the dev console.

Expected Result

The application should load.

Screenshots and Videos

HTTP request information from Firefox devtools: image

Crash Report or Log

https://gist.github.com/Silveere/d6cc6e29f188c7c70985aa752c46fcab

Operating System

Arch Linux

CTM Version

1.4

Create Version

0.5.1d

Minecraft Version

1.20.1

Mod Loader

Quilt

Modloader Version

0.21.0

Instance Type

Server hosted on the same LAN

Other Mods

create-fabric-0.5.1-d-build.1161+mc1.20.1.jar
create-track-map-1.4+mc1.20.1-fabric.jar
qfapi-7.4.0_qsl-6.1.2_fapi-0.90.0_mc-1.20.1.jar
quilt-kotlin-libraries-2.1.3+kt.1.9.10+flk.1.10.10.jar

Additional Context

I was first experiencing this issue in a fairly large custom modpack. I uninstalled all mods besides those necessary to load the server, and I still have the issue.

Silveere commented 10 months ago

I just tried hosting the static content (everything in src/main/resources/assets/littlechasiu/ctm/static) on my web server and only reverse proxying /api/* and everything seems to work fine like that. It just seems to be some issue with serving the static content.

meapeze commented 8 months ago

Seeing this issue on 1.19.2 with CTM Fabric 1.4 (Create 0.5.1) on Quilt too

Polaris277 commented 7 months ago

This issue appears to be to do with quilt. Running the same modpack on fabric and quilt (both using fabric api&kotlin) and both can load apis, but only fabric can show the map