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: 26 comments 10 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. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
Is there any recommended steps how to solve this issue? I create github issues using |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
Same issue for me |
Beta Was this translation helpful? Give feedback.
-
|
Let me know if you find any workaround :) |
Beta Was this translation helpful? Give feedback.
-
|
Started seeing the same issue since last few days |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
Same, suddenly happended any suggested solutions? |
Beta Was this translation helpful? Give feedback.
-
|
facing this exact same issue, did anyone find a workaround? |
Beta Was this translation helpful? Give feedback.
-
|
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. |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
It seems like it has started working again, will continue to test, but interested in any other feedback. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, it works for me now as well. |
Beta Was this translation helpful? Give feedback.
-
|
yep, it now works for me too |
Beta Was this translation helpful? Give feedback.
-
|
It broke again about 5 hours ago. |
Beta Was this translation helpful? Give feedback.
-
|
broken for me again as well :( |
Beta Was this translation helpful? Give feedback.
-
|
Yes issue started again since ~ 15 hrs ago |
Beta Was this translation helpful? Give feedback.
-
|
Same issue for me. It seems this error is thrown for a range of issues because this was also thrown when I used the wrong model id in the POST request. |
Beta Was this translation helpful? Give feedback.
-
|
This functionality appears to be back online for me! |
Beta Was this translation helpful? Give feedback.
-
|
Now I see a slightly different error: |
Beta Was this translation helpful? Give feedback.
-
|
it now replies with a different error message:
|
Beta Was this translation helpful? Give feedback.
-
|
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) |
Beta Was this translation helpful? Give feedback.
-
|
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.) |
Beta Was this translation helpful? Give feedback.
-
|
API calls are working again for me. |
Beta Was this translation helpful? Give feedback.
-
|
Ah yes, the classic '201 Created but actually failed asynchronously'—definitely feels like a backend regression! |
Beta Was this translation helpful? Give feedback.
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?
Beta Was this translation helpful? Give feedback.
All reactions