Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Open
DevScyu opened this issue Sep 9, 2022 · 0 comments
Open

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

DevScyu opened this issue Sep 9, 2022 · 0 comments

Comments

@DevScyu
Copy link

DevScyu commented Sep 9, 2022

##[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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant