prebuild: Error when uploading to GitHub release: "Error from GitHub: Validation Failed"

Hey folks, I’m running prebuild on CI after not having used it in a while and I’m getting this error when prebuild tries to upload assets to a GitHub release:

prebuild ERR! build Error: Error from GitHub: Validation Failed
prebuild ERR! build     at responseHandler (C:\projects\node-pty-prebuilt\node_modules\ghutils\ghutils.js:25:23)
prebuild ERR! build     at BufferList._callback (C:\projects\node-pty-prebuilt\node_modules\jsonist\jsonist.js:61:7)
prebuild ERR! build     at BufferList.end (C:\projects\node-pty-prebuilt\node_modules\bl\bl.js:105:10)
prebuild ERR! build     at DuplexWrapper.onend (C:\projects\node-pty-prebuilt\node_modules\hyperquest\node_modules\readable-stream\lib\_stream_readable.js:537:10)
prebuild ERR! build     at Object.onceWrapper (events.js:273:13)
prebuild ERR! build     at DuplexWrapper.emit (events.js:187:15)
prebuild ERR! build     at C:\projects\node-pty-prebuilt\node_modules\hyperquest\node_modules\readable-stream\lib\_stream_readable.js:934:16
prebuild ERR! build     at process._tickCallback (internal/process/next_tick.js:61:11)
Command exited with code 2

I’ve recreated the GitHub token I’m using in CI to upload the releases so it shouldn’t be an authentication issue. Any idea what might be causing this?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 25 (25 by maintainers)

Commits related to this issue

Most upvoted comments

Thanks for looking into this @ralphtheninja! I hadn’t come across prebuild-ci before, looks like that might solve this problem. I’ll give it a shot!

Failed again for the same reason… I’ll try debugging it locally on my machine to see what’s going on.

It is, but there might also be a .errors array with extra information that we can tack on. If present. https://developer.github.com/v3/#client-errors