{"record":{"id":"a4fbaf2b9b65e549","repo":"zed-industries/zed","slug":"display-name-is-not-available-in-region-try-s","errorCode":null,"errorMessage":"{display_name} is not available in {region}. Try switching to a region where this model is supported.","messagePattern":"(.+?) is not available in (.+?)\\. Try switching to a region where this model is supported\\.","errorType":"exception","errorClass":"LanguageModelCompletionError","httpStatus":null,"severity":"error","filePath":"crates/language_models/src/provider/bedrock.rs","lineNumber":987,"sourceCode":"            self.model.default_temperature(),\n            self.model.max_output_tokens(),\n            self.model.thinking_mode(),\n            self.model.supports_caching(),\n            self.model.supports_tool_use(),\n            guardrail_identifier,\n            guardrail_version,\n        ) {\n            Ok(request) => request,\n            Err(err) => return futures::future::ready(Err(err.into())).boxed(),\n        };\n\n        let request = self.stream_completion(request, cx);\n        let display_name = self.model.display_name().to_string();\n        let executor = cx.background_executor().clone();\n        let future = self.request_limiter.stream(async move {\n            let response = request.await.map_err(|err| match err {\n                BedrockError::Validation(ref msg) => {\n                    if msg.contains(\"model identifier is invalid\") {\n                        LanguageModelCompletionError::from_provider_response(\n                            PROVIDER_NAME,\n                            None,\n                            Some(\"ValidationException\".to_string()),\n                            format!(\n                                \"{display_name} is not available in {region}. \\\n                                 Try switching to a region where this model is supported.\"\n                            ),\n                            None,\n                            ProviderErrorCategory::InvalidRequest,\n                        )\n                    } else {\n                        LanguageModelCompletionError::from_provider_response(\n                            PROVIDER_NAME,\n                            None,\n                            Some(\"ValidationException\".to_string()),\n                            msg.clone(),\n                            None,","sourceCodeStart":969,"sourceCodeEnd":1005,"githubUrl":"https://github.com/zed-industries/zed/blob/5a9b9558db01a6b906cec2fb70a797affdc58cdd/crates/language_models/src/provider/bedrock.rs#L969-L1005","documentation":"User-facing translation of a Bedrock ValidationException in BedrockModel's streaming path: Bedrock rejected the request with a validation error whose message contains \"model identifier is invalid\", meaning the chosen model ID does not exist in the configured AWS region (wrong region for this model, model not enabled/subscribed there, or a stale model id). The raw AWS message is replaced with this actionable message naming the model's display name and region.","triggerScenarios":"Thrown at crates/language_models/src/provider/bedrock.rs:984 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Switch the Bedrock region setting to one where the model is available","Verify the model is enabled/subscribed for your AWS account in that region (model access in the Bedrock console)","Check that the configured model id/region pair hasn't changed (AWS retires or renames model ids)","Retry after changing region; the underlying error is deterministic, not transient"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5a9b9558db01a6b906cec2fb70a797affdc58cdd","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}