React - try catch of ledger.exercise issue

Hi @alexander,

That usually arises if your codegen ends up in an inconsistent state somehow.
Take a look at my explanation at Warning message in JSON-API " Illegal header: Illegal 'origin' header: Illegal origin: Invalid input '/" and in particular the link to the steps in Daml-ui-template React function and Action with 2 arguments that should hopefully resolve your issue.