Jellyfin Forum
Runtime errors when naviagting to homepage - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Development (https://forum.jellyfin.org/f-development)
+--- Forum: Web Development (https://forum.jellyfin.org/f-web-development)
+--- Thread: Runtime errors when naviagting to homepage (/t-runtime-errors-when-naviagting-to-homepage)



Runtime errors when naviagting to homepage - Dzvon2 - 2024-04-06

I was looking at potentially contributing to Jellyfin in the near future but I ran into issues getting a local serve spun up. Whenever I navigate to the homepage of my server I get uncaught runtime errors and from the console I get the stack trace below (note I removed any potential PII, but marked places where I removed such things). None of my libraries appear either which makes it pretty hard to see the changes I make. I know testing for 10.9 is well underway, so is this a bug or some additional feature coming in 10.9 I am not aware of?

Code:
{
  "stack": "AxiosError@webpack-internal:///../node_modules/axios/lib/core/AxiosError.js:38:18\nsettle@webpack-internal:///../node_modules/axios/lib/core/settle.js:24:12\nonloadend@webpack-internal:///../node_modules/axios/lib/adapters/xhr.js:159:67\n",
  "message": "Request failed with status code 404",
  "name": "AxiosError",
  "code": "ERR_BAD_REQUEST",
  "config": {
    "transitional": {
      "silentJSONParsing": true,
      "forcedJSONParsing": true,
      "clarifyTimeoutError": false
    },
    "adapter": [
      "xhr",
      "http"
    ],
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1,
    "maxBodyLength": -1,
    "env": {},
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": null,
      "Authorization": "MediaBrowser Client=\"Jellyfin%20Web\", Device=\"Firefox\", DeviceId=\"<my-device-id>\", Version=\"10.9.0\", Token=\"<token-here>\""
    },
    "method": "get",
    "signal": {},
    "url": "<localHost IP>/UserViews?userId=<my-user-id>"
  },
  "request": {},
  "response": {
    "data": "",
    "status": 404,
    "statusText": "Not Found",
    "headers": {
      "content-length": "0"
    },
    "config": {
      "transitional": {
        "silentJSONParsing": true,
        "forcedJSONParsing": true,
        "clarifyTimeoutError": false
      },
      "adapter": [
        "xhr",
        "http"
      ],
      "transformRequest": [
        null
      ],
      "transformResponse": [
        null
      ],
      "timeout": 0,
      "xsrfCookieName": "XSRF-TOKEN",
      "xsrfHeaderName": "X-XSRF-TOKEN",
      "maxContentLength": -1,
      "maxBodyLength": -1,
      "env": {},
      "headers": {
        "Accept": "application/json, text/plain, */*",
        "Content-Type": null,
        "Authorization": "MediaBrowser Client=\"Jellyfin%20Web\", Device=\"Firefox\", DeviceId=\"<device-id-here>\", Version=\"10.9.0\", Token=\"<token-here>\""
      },
      "method": "get",
      "signal": {},
      "url": "<localHost IP>/UserViews?userId=<user-id-here>"
    },
    "request": {}
  }
}



RE: Runtime errors when naviagting to homepage - TheDreadPirate - 2024-04-06

What OS and which install method?


RE: Runtime errors when naviagting to homepage - niels - 2024-04-06

Make sure to use a 10.9 server. The master branch of the web client is not compatible with 10.8 servers
We've added new routes in our API to remove the need for a user id in the path, these routes are not available in 10.8 causing the 404 response.


RE: Runtime errors when naviagting to homepage - Dzvon2 - 2024-04-06

(2024-04-06, 07:27 PM)niels Wrote: Make sure to use a 10.9 server. The master branch of the web client is not compatible with 10.8 servers
We've added new routes in our API to remove the need for a user id in the path, these routes are not available in 10.8 causing the 404 response.


Oh this is the issue. I had the 10.9 interface but my server is on 10.8.13. Thanks for the help