You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Raised AdcpError only fills adcp_error, so storyboards that read errors[0] fail #1558
build_mcp_error_result (src/adcp/server/translate.py) builds structuredContent as {"adcp_error": {...}} only. The error-handling docs say a fatal failure SHOULD populate both layers:
A fatal task failure SHOULD populate both layers. The payload carries the structured errors[] array that any protocol can read verbatim, and the transport envelope carries adcp_error…
This bites in practice: media_buy_seller/product_signal_targeting, step create_media_buy_with_unknown_signal, checks field_value at errors[0].field (3.1.1 through 3.2.5, and the current source). A seller that raises AdcpError, the path the docs recommend, gets isError: true with only adcp_error and fails that step.
Repro: raise AdcpError("INVALID_REQUEST", field="packages[0]...", ...) from a create_media_buy handler and run the storyboard. The error_code check passes; the errors[0].field check gets null.
Suggested fix: one line in build_mcp_error_result:
Activity
fix(server): mirror a raised AdcpError into the payload errors array (#…
feat(decisioning): let a raised AdcpError reject a request with every…
feat(decisioning): let a raised AdcpError reject a request with every…
feat(decisioning): let a raised AdcpError reject a request with every…