GDLauncher icon indicating copy to clipboard operation
GDLauncher copied to clipboard

Updating Curseforge mod not working

Open PaddeCraft opened this issue 3 years ago • 0 comments

Describe the bug When updating a mod, it never stops updating.

To Reproduce Steps to reproduce the behavior:

  1. Go to outdated instance
  2. Check for updates
  3. Click on update symbol

Expected behavior The spinner should stop and the mod should have updated.

Possible solutions Fix api call. After checking the console, I saw that the request URL was https://api.curseforge.com/v1/mods/undefined, and because of that the server returns a 404. The error object:

{
    "message": "Request failed with status code 404",
    "name": "AxiosError",
    "config": {
        "transitional": {
            "silentJSONParsing": true,
            "forcedJSONParsing": true,
            "clarifyTimeoutError": false
        },
        "transformRequest": [
            null
        ],
        "transformResponse": [
            null
        ],
        "timeout": 0,
        "xsrfCookieName": "XSRF-TOKEN",
        "xsrfHeaderName": "X-XSRF-TOKEN",
        "maxContentLength": -1,
        "maxBodyLength": -1,
        "env": {},
        "headers": {
            "Accept": "application/json",
            "X-API-KEY": "$2a$10$5BgCleD8.rLQ5Ix17Xm2lOjgfoeTJV26a1BXmmpwrOemgI517.nuC"
        },
        "method": "get",
        "url": "https://api.curseforge.com/v1/mods/undefined"
    },
    "code": "ERR_BAD_REQUEST",
    "status": 404
}

Screenshots image

Operating System:

  • OS: Arch Linux
  • Distro: Archcraft
  • Kernel Version: uname -r: 5.18.9-arch1-1
  • Launcher Version: v1.1.25
  • Global Java Version: java --version: openjdk 17.0.3 2022-04-19
  • Instance Java Version: Java 17
  • Tested Minecraft Versions: 1.18.1 forge 39.0.75, 1.17.1 fabric 0.11.6

PaddeCraft avatar Jul 09 '22 12:07 PaddeCraft