fix(worker): keep DLQ failures within the canonical taxonomy
This commit is contained in:
@@ -113,6 +113,11 @@ def normalize_cdr_payload(
|
||||
return None, "malformed_json", None, None
|
||||
raw_id = payload.get("raw_id")
|
||||
raw_id_str = raw_id if isinstance(raw_id, str) else None
|
||||
if raw_id_str is not None:
|
||||
try:
|
||||
raw_id_str.encode("utf-8")
|
||||
except UnicodeError:
|
||||
raw_id_str = None
|
||||
try:
|
||||
validate_structure(payload)
|
||||
except PayloadError as exc:
|
||||
|
||||
Reference in New Issue
Block a user