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

Invalid request. No more than 50 items are allowed #12

Open
rafaelpernil2 opened this issue Feb 4, 2020 · 4 comments
Open

Invalid request. No more than 50 items are allowed #12

rafaelpernil2 opened this issue Feb 4, 2020 · 4 comments

Comments

@rafaelpernil2
Copy link

When a project has more than 50 files to run tslint onto, the pipeline fails. I am using version 1.1.1

@twpayne
Copy link

twpayne commented Apr 13, 2020

With just two TypeScript source files in my directory, I'm seeing the error message:

/usr/bin/docker run --name d00b33d4a6d87feb414d5bb3068de604f682c7_928b95 --label d00b33 --workdir /github/workspace --rm -e INPUT_PATTERN -e INPUT_TOKEN -e INPUT_PROJECT -e INPUT_CONFIG -e HOME -e GITHUB_JOB -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_REPOSITORY_OWNER -e GITHUB_RUN_ID -e GITHUB_RUN_NUMBER -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -e ACTIONS_RUNTIME_URL -e ACTIONS_RUNTIME_TOKEN -e ACTIONS_CACHE_URL -e GITHUB_ACTIONS=true -e CI=true -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/xcscore-js/xcscore-js":"/github/workspace" d00b33:d4a6d87feb414d5bb3068de604f682c7
HttpError: Invalid request.

No more than 50 items are allowed; 159 were supplied.
    at /var/task/node_modules/@octokit/request/dist-node/index.js:66:23
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /var/task/index.js:79:5
##[error]Invalid request.

I think (but not have verified) the error message is hitting the octokit output.annotations limit described here: https://octokit.github.io/rest.js/v17.

@lepathie
Copy link

I am also having this issue. Would've loved to use this action.

@zackkitzmiller
Copy link

I'm running into this too, anyone find a solution?

@rafaelpernil2
Copy link
Author

The best "solution" I found was migrating to ESLint since TSLint is now deprecated. There's a guide with an automatic utility that does the job https://code.visualstudio.com/api/advanced-topics/tslint-eslint-migration

I use this GitHub Action as a replacement, it works great: https://github.com/marketplace/actions/eslint-js-ts-action

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

4 participants