Reason: Request Failed: 400 {"error":{"message":"too many URL images in request (max 20)","code":""}} #189253
-
Select Topic AreaBug Copilot Feature AreaVS Code BodyWhat error is this? I don't have any URLs or images in my prompt or in my history. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 4 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.
-
hey! @odrigoslayertech Context window pollution — your chat history has grown large and contains something the model flags internally Fix steps in order: Clear your chat history → Click the "+" button in Copilot Chat to start a fresh conversation — this alone fixes it 90% of the time If none of above works: Go to github.com/github/feedback and report it under Copilot + VS Code Most likely just a stale context issue — starting a fresh chat should fix it instantly! 🙌 |
Beta Was this translation helpful? Give feedback.
-
|
I'm having the same issue when using the #file:example-file |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
In my case, the folder references (in the form of #FOLDER_NAME) could had been the problem. I removed the "#"s and Claude started working properly. |
Beta Was this translation helpful? Give feedback.
-
|
Running /compact solved it for me
|
Beta Was this translation helpful? Give feedback.
-
|
what worked for me is using the /compact command. |
Beta Was this translation helpful? Give feedback.
-
|
Sometimes it still happens to me, especially if VSCode is open in folders that don't contain |
Beta Was this translation helpful? Give feedback.
-
|
For me it also started failing when I assigned a folder reference. |
Beta Was this translation helpful? Give feedback.
-
|
issue still seems to exists, even doing everything mentioned in the solution would only make the issue go away for few prompts, then it does come back again |
Beta Was this translation helpful? Give feedback.


hey! @odrigoslayertech
This is a known intermittent error that started appearing recently with Claude models in Copilot. Here's what's happening and how to fix it:
What this error means
Even if you don't have any URLs or images in your prompt, Claude models sometimes trigger this error due to:
Context window pollution — your chat history has grown large and contains something the model flags internally
GitHub Copilot's content filter firing incorrectly on certain c…