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

sporadic "Server Error" on adding labels #306

Open
kwavnet opened this issue May 17, 2023 · 0 comments
Open

sporadic "Server Error" on adding labels #306

kwavnet opened this issue May 17, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@kwavnet
Copy link

kwavnet commented May 17, 2023

🐞 Describe the bug

We have sporadic "Server Error" messages (and therefore failed pipelines) when the action is trying to set labels.
The label does exist in the downstream repo.
It's also not a permission issue, as we tried different levels of access tokens, all with the same result.

We are syncing a fairly large sync list (currently ~100 repositories)

Personal hunch: Could it be that we are hitting GitHub API rate limiting?

📚 To reproduce

- name: Run GitHub File Sync
  uses: BetaHuhn/repo-file-sync-action@v1.21.0
  with:
    GH_PAT: ${{ secrets.PAT }}
    COMMIT_EACH_FILE: false
    PR_LABELS: |
      sync
    COMMIT_PREFIX: "sync: "
    ORIGINAL_MESSAGE: true
  • run this like 100 times with a change set, so a PR will be created/updated
  • (doesn't matter a if a downstream PR already exists or not)
  • (we tested it so far only with private repositories)

💡 Expected behavior

No "Server Error" or at least a more meaningful debug message

🖼️ Screenshots

No response

⚙️ Environment

  • ubuntu-latest runner
  • latest release of the action (1.21.0 by the time of writing)

📋 Additional context

log output

Repository Info
Slug		: my-private-repo
Owner		: my-org
Https Url	: https://github.com/my-org/my-private-repo
Branch		: main
	
Found existing PR 392
Locally syncing file(s) between source and target repository
Source is directory
Pushing changes to target repository
Overwriting existing PR
Notice: Pull Request #392 created/updated: https://github.com/my-org/my-private-repo/pull/392
Adding label(s) "sync" to PR
Error: Server Error
@kwavnet kwavnet added the bug Something isn't working label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant