{
  "id": "aws/sqs-message-attributes-too-large",
  "signature": "An error occurred (InvalidParameterValue) when calling the SendMessage operation: One or more parameter values are invalid. Message attributes size must be smaller than 25600 bytes",
  "signature_zh": "调用SendMessage操作时发生错误（InvalidParameterValue）：一个或多个参数值无效。消息属性大小必须小于25600字节",
  "regex": "InvalidParameterValue.*Message attributes size must be smaller than 25600 bytes",
  "domain": "aws",
  "category": "protocol_error",
  "subcategory": null,
  "root_cause": "The total size of message attributes (including keys and values) exceeds the 25 KB limit for SQS messages.",
  "root_cause_type": "generic",
  "root_cause_zh": "消息属性的总大小（包括键和值）超过了SQS消息的25 KB限制。",
  "versions": [
    {
      "version": "sqs-2024",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "aws-sdk-python-1.34.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "SQS检查的是未压缩的属性大小，压缩不会改变原始大小。",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "FIFO队列与标准队列具有相同的属性大小限制。",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Move large attributes (e.g., binary data, large strings) to the message body instead. The body has a 256 KB limit. Example: sqs_client.send_message(QueueUrl=queue_url, MessageBody=json.dumps({'data': large_data}), MessageAttributes={'attr1': {'DataType': 'String', 'StringValue': 'small_value'}})",
      "success_rate": 0.95,
      "how": "Move large attributes (e.g., binary data, large strings) to the message body instead. The body has a 256 KB limit. Example: sqs_client.send_message(QueueUrl=queue_url, MessageBody=json.dumps({'data': large_data}), MessageAttributes={'attr1': {'DataType': 'String', 'StringValue': 'small_value'}})",
      "condition": "",
      "sources": []
    },
    {
      "action": "If attributes are necessary, store large attribute values in S3 or DynamoDB and pass only a reference (e.g., S3 key) as the attribute value.",
      "success_rate": 0.9,
      "how": "If attributes are necessary, store large attribute values in S3 or DynamoDB and pass only a reference (e.g., S3 key) as the attribute value.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Move large attributes (e.g., binary data, large strings) to the message body instead. The body has a 256 KB limit. Example: sqs_client.send_message(QueueUrl=queue_url, MessageBody=json.dumps({'data': large_data}), MessageAttributes={'attr1': {'DataType': 'String', 'StringValue': 'small_value'}})",
    "If attributes are necessary, store large attribute values in S3 or DynamoDB and pass only a reference (e.g., S3 key) as the attribute value."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-quotas.html",
  "official_doc_section": null,
  "error_code": "InvalidParameterValue",
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.92,
  "resolvable": "true",
  "first_seen": "2023-08-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}