trilom / file-changes-action

This action can be added, and you will get outputs of all of the files that have changed in your repository for you to use.
MIT License
167 stars 48 forks source link

Error 500: There was an issue sorting files changed #104

Open JonasJacobsUserspace opened 4 years ago

JonasJacobsUserspace commented 4 years ago

Describe the bug Error in execution (node:7556) UnhandledPromiseRejectionWarning: Error: {"error":"500/TypeError","from":"sortChangedFiles","message":"There was an issue sorting files changed.","payload":"{}"} at run (/home/runner/work/_actions/trilom/file-changes-action/v1.2.3/dist/index.js:1:19989) at processTicksAndRejections (internal/process/task_queues.js:93:5) (node:7556) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:7556) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

[error]There was an issue sorting changed files from Github.

Exception: { "error": "500/TypeError", "from": "sortChangedFiles", "message": "There was an issue sorting files changed.", "payload": "{}" }

Workflow Used in a step to determine changed in files

Expected behavior No errors

Additional context Filesystem: Ubuntu 18.04.4 LTS Virtual Environment Environment: ubuntu-18.04 Version: 20200705.1 Included Software: https://github.com/actions/virtual-environments/blob/ubuntu18/20200705.1/images/linux/Ubuntu1804-README.md

tnightengale commented 4 years ago

Same error.

ghost commented 4 years ago
Run trilom/file-changes-action@v1.2.3
##[error]There was an issue sorting changed files from Github.
Exception: {
  "error": "500/TypeError",
  "from": "sortChangedFiles",
  "message": "There was an issue sorting files changed.",
  "payload": "{}"
}
(node:3707) UnhandledPromiseRejectionWarning: Error: {"error":"500/TypeError","from":"sortChangedFiles","message":"There was an issue sorting files changed.","payload":"{}"}
    at run (/home/runner/work/_actions/trilom/file-changes-action/v1.2.3/dist/index.js:1:19989)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:3707) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3707) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
guitarrapc commented 4 years ago

I've met same error with trilom/file-changes-action@v1.2.3 and fixed on trilom/file-changes-action@v1.2.4.

ghost commented 4 years ago

no longer getting this error on trilom/file-changes-action@v1.2.4 after better specifying what PRs/pushes trigger the github action that uses this.

gustavoplenamente commented 4 years ago

I was facing the same issue on v1.2.3. Solved upgrading to v.1.2.4 as well.