continue icon indicating copy to clipboard operation
continue copied to clipboard

Continue Error Handling Response Claude 3.7 Sonnet

Open gbrac opened this issue 1 year ago • 6 comments

Before submitting your bug report

Relevant environment info

- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to agent in Continue hub:

Description

There was an error handling the response from AWS Bedrock - Claude 3.7 Sonnet.

Please try to submit your message again, and if the error persists, let us know by reporting the issue using the buttons below.

The model returned the following errors: invalid beta flag.

To reproduce

No response

Log output


gbrac avatar Oct 20 '25 22:10 gbrac

@gbrac this could be related to the recent AWS outage, was there any other information about this error? Do you see anything in the logs? https://docs.continue.dev/troubleshooting#troubleshooting

RomneyDa avatar Oct 20 '25 22:10 RomneyDa

No not the outage, it started at least for me when I upgraded to VSCode 1.2.7 version of the plugin, I tried again this morning with 1.2.10 and I still get the same error. If I revert back to 1.2.6 it works just fine. The same thing happens in the Jetbrains plugin you need to revert back to 1.0.45 for that work

Here is the log from VSCode

[Extension Host] [@continuedev] error: The model returned the following errors: invalid beta flag {"context":"llm_stream_chat","model":"arn:aws-us-gov:bedrock:us-gov-west-1::foundation-model/anthropic.claude-3-7-sonnet-20250219-v1:0","provider":"bedrock","useOpenAIAdapter":false,"streamEnabled":true,"templateMessages":false}
console.ts:137 [Extension Host] ValidationException: The model returned the following errors: invalid beta flag
	at de_ValidationExceptionRes (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:462204:25)
	at de_CommandError (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:462021:23)
	at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
	at async /Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:443304:24
	at async /Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:443427:22
	at async /Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:453528:42
	at async /Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:443037:26
	at async Bedrock2._streamChat (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:465842:26)
	at async createRetryableAsyncGenerator (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:465709:22)
	at async Bedrock2.wrappedMethod (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:465640:11)
	at async Bedrock2.streamChat (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:243999:32)
	at async llmStreamChat (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:722150:19)
	at async od.handleMessage [as value] (/Users/user/.vscode/extensions/continue.continue-1.2.10-darwin-arm64/out/extension.js:760617:29)

This is the same issue as #8297

bgiaccio avatar Oct 24 '25 12:10 bgiaccio

I have the same issue.

thomaspmorgan avatar Nov 03 '25 14:11 thomaspmorgan

Have bumped priority on this, also open to contributions.

RomneyDa avatar Dec 02 '25 22:12 RomneyDa

This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

github-actions[bot] avatar Mar 03 '26 02:03 github-actions[bot]

This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

github-actions[bot] avatar Mar 14 '26 02:03 github-actions[bot]