CopilotForXcode icon indicating copy to clipboard operation
CopilotForXcode copied to clipboard

Lots of "request was to large..." errors

Open Urkman opened this issue 3 months ago • 19 comments

Describe the bug I get lots of "Ops, your request was to large..." errors. But this also happen with just a simple question and one file added. And a simple "continue" help most of the time. Until the next error message. I'm currently using GTP-5, but this also happens with Claude 4.

Versions

  • Copilot for Xcode: [e.g. 0.43.0]
  • Xcode: [e.g. 2.0]
  • macOS: [e.g. 15.6.1]

Steps to reproduce Just add some messages to Copilot.

Screenshots Image

Urkman avatar Sep 06 '25 09:09 Urkman

And one more, comes up very often.

Image

Urkman avatar Sep 06 '25 12:09 Urkman

Yes. Same problem.

I want to love GitHub Copilot for Xcode, but between the Request too large and and error occurred while generating a response, it's tough.

I find myself resorting to opencode cli more and more. Hopefully GitHub Copilot for Xcode can be as stable and provide more models (xAI models, for example) like opencode.

vernonstinebaker avatar Sep 07 '25 05:09 vernonstinebaker

And one more, comes up very often.

Image

Would you mind sharing the logs at /Users/<name>/Library/Logs/GitHubCopilot/github-copilot-for-xcode.log?

testforstephen avatar Sep 08 '25 01:09 testforstephen

"Your request is too large..." is rate limit related issue, if you consume lots of tokens in a short time, you may encounter this error. the suggestion is to retry later.

testforstephen avatar Sep 08 '25 02:09 testforstephen

Not sure if the log gets overwritten each session or is cumulative. Here's the one I have. If it's not useful because the log gets overwritten I can try using it for a while and copy the log again after I experience the issues noted. For now I've more or less abandoned it for opencode where there's also access to Grok Code Fast 1 (which truly is fast).

CopilotForXcode.tgz

vernonstinebaker avatar Sep 08 '25 02:09 vernonstinebaker

Here is my log:

github-copilot-for-xcode.log.zip

Urkman avatar Sep 08 '25 11:09 Urkman

"Your request is too large..." is rate limit related issue, if you consume lots of tokens in a short time, you may encounter this error. the suggestion is to retry later.

I'm not using more or less than before. And why I have 300 Premium requests included, when I get "another rate limit"?

Urkman avatar Sep 08 '25 11:09 Urkman

I find myself in the same situation, I keep getting the "Oops, the token limit exceeded. Try to shorten your prompt or start a new conversation."

The problem is that it keeps using premium tokens and doing nothing for them except throwing that error.

This happens on both standard and premium models.

Here's the log:

github-copilot-for-xcode.log

paulwiderman avatar Sep 09 '25 09:09 paulwiderman

QUIERO MUCHO MÁS _

adri84-chipi avatar Sep 10 '25 00:09 adri84-chipi

Hoe shit

Alexsizbaby avatar Sep 10 '25 04:09 Alexsizbaby

Same here. Unfortunately makes it unusable most of the time. Resort to VS Code instead. But please fix this as it's a much nicer way of working with xcode projects!

appfrilans avatar Sep 10 '25 13:09 appfrilans

Any news on this?

Urkman avatar Sep 11 '25 16:09 Urkman

Any news on this?

waiting for the server team to give more explanation on this error.

testforstephen avatar Sep 12 '25 05:09 testforstephen

I find myself in the same situation, I keep getting the "Oops, the token limit exceeded. Try to shorten your prompt or start a new conversation."

The problem is that it keeps using premium tokens and doing nothing for them except throwing that error.

This happens on both standard and premium models.

Here's the log:

github-copilot-for-xcode.log

@paulwiderman This isn’t a bug but expected behavior. It typically means your current chat history has grown too long and exceeded the token limit. Opening a new conversation should fix the problem.

testforstephen avatar Sep 12 '25 05:09 testforstephen

@testforstephen I don't know if it's a bug, but it's certainly unexpected and undesired behavior. It also often occurs with quite new conversations. OTOH, sometimes conversations go on for quite a while before it occurs. It doesn't occur with other tools like opencode or Copilot in Visual Studio Code. The situation is bad enough that I actually use Visual Studio Code instead of Xcode for some Swift code development just for the better AI Agent experience.

vernonstinebaker avatar Sep 12 '25 05:09 vernonstinebaker

@vernonstinebaker what I'm talking about is related to "Oops, the token limit exceeded. Try to shorten your prompt or start a new conversation." This is a different issue with "request is too large".

testforstephen avatar Sep 12 '25 05:09 testforstephen

@testforstephen if it's expected behaviour, then why it's only happening in the Xcode implementation of copilot? Opencode and VSCode all work perfectly with chats that span weeks of project directives.

The problem is that it consumes premium tokens when the output is error, shouldn't do that, instead instruct that a new chat is required to continue the work or somethings of the like.

paulwiderman avatar Sep 12 '25 07:09 paulwiderman

The problem is that it consumes premium tokens when the output is error, shouldn't do that, instead instruct that a new chat is required to continue the work or somethings of the like.

That's not even necessary, just write continue until Copilot is finished...

Urkman avatar Sep 12 '25 08:09 Urkman

@testforstephen if it's expected behaviour, then why it's only happening in the Xcode implementation of copilot? Opencode and VSCode all work perfectly with chats that span weeks of project directives.

The problem is that it consumes premium tokens when the output is error, shouldn't do that, instead instruct that a new chat is required to continue the work or somethings of the like.

@paulwiderman VS Code Copilot first summarizes the chat history and then uses that summary as context when it detects that the history turn tokens reach a budget. This token-usage optimization is still a work in progress in Xcode and not available yet.

testforstephen avatar Sep 12 '25 08:09 testforstephen