ESCROW_STRING_TOO_LONG
A String field exceeded its on-chain maximum length.
422 Validation Error · escrow contract error · multi-release v2, single-release v2
Example
{
"type": "https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/errors/escrow-string-too-long",
"title": "Validation Error",
"status": 422,
"code": "ESCROW_STRING_TOO_LONG",
"detail": "A String field exceeded its on-chain maximum length (engagement_id 100, title 100, description 500, milestone status 50, evidence 500, dispute reason 500).",
"instance": "/…",
"traceId": "…"
}When it happens
Simulation of the transaction fails on-chain with this contract error: a text field is longer than the contract allows. The on-chain limits are engagement_id 100, title 100, description 500, milestone status 50, evidence 500, dispute reason 500.
How to fix it
Shorten the offending field to within its limit, then rebuild and resubmit.