{"record":{"id":"1502d09899639359","repo":"BerriAI/litellm","slug":"unable-to-map-bedrock-request-to-provider","errorCode":null,"errorMessage":"Unable to map Bedrock request to provider","messagePattern":"Unable to map Bedrock request to provider","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"litellm/llms/bedrock/embed/embedding.py","lineNumber":517,"sourceCode":"                    provider=provider,\n                    is_async_invoke=has_async_invoke,\n                )\n            returned_response: Final = self._single_func_embeddings(\n                client=(client if client is not None and isinstance(client, HTTPHandler) else None),\n                timeout=timeout,\n                batch_data=batch_data,\n                credentials=credentials,\n                extra_headers=extra_headers,\n                endpoint_url=endpoint_url,\n                aws_region_name=aws_region_name,\n                model=model,\n                logging_obj=logging_obj,\n                api_key=api_key,\n                provider=provider,\n                is_async_invoke=has_async_invoke,\n            )\n            if returned_response is None:\n                raise Exception(\"Unable to map Bedrock request to provider\")\n            return returned_response\n        elif data is None:\n            raise Exception(\"Unable to map Bedrock request to provider\")\n\n        headers = {\"Content-Type\": \"application/json\"}\n        if extra_headers is not None:\n            headers = {\"Content-Type\": \"application/json\", **extra_headers}\n\n        prepped: Final = self.get_request_headers(\n            credentials=credentials,\n            aws_region_name=aws_region_name,\n            extra_headers=extra_headers,\n            endpoint_url=endpoint_url,\n            data=json.dumps(data),\n            headers=headers,\n            api_key=api_key,\n        )\n","sourceCodeStart":499,"sourceCodeEnd":535,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/bedrock/embed/embedding.py#L499-L535","documentation":"Dispatch failure in the Bedrock embedding request path: the computed provider has no matching request-transformation branch, so the batch embedding data cannot be mapped to a provider-specific invoke payload.","triggerScenarios":"Thrown at litellm/llms/bedrock/embed/embedding.py:517 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the model id maps to a supported embedding provider.","Check request parameters against the provider's expected input.","Use a supported Bedrock embedding model."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}