Skip to content

TypeError: Cannot read properties of undefined (reading 'body') #18

@DevScyu

Description

@DevScyu
##[debug]Request meta: {"changelog":"### [1.12.1](https://github.com/Wynntils/Wynntils/compare/v1.12.0...v1.12.1) (2022-09-09)\n\n\n### Bug Fixes\n\n* **test:** test release ([6a8d4bd](https://github.com/Wynntils/Wynntils/commit/6a8d4bdf1c552401448443be64af8a2d1749add7))","gameVersions":[6756,8867,4458],"releaseType":"beta","changelogType":"markdown","displayName":"Wynntils-v1.12.1"}
/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:11402
          `Request error:${err}\nResponse body:\n${response.body}\nRequest body:${body}`
                                                            ^

TypeError: Cannot read properties of undefined (reading 'body')
    at Request._callback (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:11402:61)
    at self.callback (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:[127](https://github.com/Wynntils/Wynntils/runs/8270267496?check_suite_focus=true#step:3:128)55:22)
    at Request.emit (node:events:390:28)
    at FormData.<anonymous> (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:13824:10)
    at FormData.emit (node:events:402:35)
    at FormData.module.exports.547.CombinedStream._emitError (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:16414:8)
    at DelayedStream.<anonymous> (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:16340:10)
    at DelayedStream.emit (node:events:402:35)
    at DelayedStream.module.exports.152.DelayedStream._handleEmit (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:1925:15)
    at ReadStream.source.emit (/home/runner/work/_actions/itsmeow/curseforge-upload/v3/dist/index.js:1872:19)

After sending the request manually, this was the response from curseforge:

Status Code: 400
Response:

{
	"errorCode": 1009,
	"errorMessage": "Invalid game version ID: 8867 belongs to an invalid dependency."
}

I have added the correct ID but thought I should report that the error was not caught properly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions