Error Assigning Copilot via API: "The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation" #190228
Replies: 34 comments 11 replies
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
|
i have the same issue on 3 different repos. started to occur something like 6-12 hours back i have no rulesets on my repos i use the copilot-cli to create issues, and assign it to copilot and then to merge it.. https://github.com/scholtz/events now it gets stucked on creating issue and not assigning it to copilot. when i assign it manually through github ui it works |
|
Is there any recommended steps how to solve this issue? I create github issues using |
|
I have tried:
What has also worked is to create a new PR, then @copilot on the PR. Copilot then creates a sub-PR, and works on the issue, but this is not the same thing, and less than ideal. @scholtz have you raised a support ticket? mine is #4186226 |
|
Same issue for me |
|
Let me know if you find any workaround :) |
|
Started seeing the same issue since last few days |
|
I have seen that it DOES work when using oAuth authentication. I found this out while testing with the GitHub Pull Request extension in VSCode which allows you to “Assign to Coring Agent”. I'm using a "fine grained" PAT, and I've given it a full range of permissions (org and repo), but had the same result. |
|
Same, suddenly happended any suggested solutions? |
|
facing this exact same issue, did anyone find a workaround? |
|
The workaround which @danmcpherson mentioned about using OAuth instead of PAT worked for us. So if we use OAuth token then it works but if used PAT token then it doesn't. |
|
Same here, started failing last friday and can't get it to work. I confirm I can assign task manually from Github but as soon as I try to do it from the |
|
It seems like it has started working again, will continue to test, but interested in any other feedback. |
|
Yes, it works for me now as well. |
|
yep, it now works for me too |
|
This functionality appears to be back online for me! |
|
Now I see a slightly different error: |
|
it now replies with a different error message:
|
|
Same issue here, following the same steps: The agent encountered an error and was unable to start working on this issue: The service is temporarily unavailable. Please try again later. (Request id: 80F2:1D4933:398B93:5E81D6:69CCE4E3) |
|
Hi @danmcpherson,
If these settings are correct, it might be a temporary backend glitch with the Copilot API. (Hope this helps! If it does, please feel free to Mark as Answer.) |
|
API calls are working again for me. |
|
Ah yes, the classic '201 Created but actually failed asynchronously'—definitely feels like a backend regression! |
|
I'm getting: The agent encountered an error and was unable to start working on this issue: The service is temporarily unavailable. Please try again later. |
|
I'm running into this same issue: "The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation." For me, I'm using an app installation token. I started this with just Read/Write on Issues (and the mandatory Read on Metadata), but in trying to make this work, I've expanded so now I have:
This is all happening in one of my personal repositories with no rulesets. I can assign to Copilot manually with no issue. |
|
Same issue for me - has anyone got a good workaround or had a response on any support tickets? |
|
Getting this error while trying to assign task to copilot: " The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists " |
|
Started getting this error again: The agent encountered an error and was unable to start working on this issue: Please try again later, or contact support if the problem persists.
|
|
This has restarted for us as well - seeing it pretty much every time a PAT token is used to assign an issue to an agent. No workarounds that I know of so far |
|
One workaround which works is to use the Github Rest API instead of graphql for assigning issue to copilot: There are some caveats:
|
|
Hi guys! |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Bug
Body
Starting today, we are seeing the following error in timelines whenever we are assigning Copilot to work on an issue using the API:
"The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists."
We can assign Copilot via the Web UI with no issue. There are NO rulesets on the Repo or at the Org level.
Reproduction Steps
POST https://api.github.com/repos///issues/<issue#>/assignees
Body: {
"assignees": [
"copilot-swe-agent[bot]"
],
"agent_assignment": {
"working_branch_prefix": "copilot/issue-#",
"model": "claude-opus-4.6"
}
}
This returns:
Status: 201 Created
✅ Copilot assigned successfully!
Assignees: Copilot,
However, the above error quickly displays in the timeline.
For testing:
We use an account that is part of the Organisation, and is an Admin on the Repo.
We are using a PAT that has the right permissions, and we have tried different accounts (all which were working).
Anyone else seeing this?
All reactions