digital-asset / daml

The Daml smart contract language
https://www.digitalasset.com/developers
Other
803 stars 203 forks source link

[BUG] Multiplexed transaction stream over JSON API is flaky #12198

Open stefanobaghino-da opened 2 years ago

stefanobaghino-da commented 2 years ago

I confirm that, if this is a bug that has security implications, I already contacted security@digitalasset.com and followed the responsible disclosure policy.

I confirm that this is not a question or a request for technical support by the community, for which the Daml forum is available.

Affected Daml version

1.18.0 and newer

Bug description

The transaction stream served by the JSON API over a web socket is flaky and falls after a short time.

To reproduce

Use https://github.com/DACH-NY/sales-eng/tree/defi/apps/marketplace-demo with SDK 1.18.0, after a couple of minutes the transaction stream falls, a spinner is shown on the UI and the console logs errors about a closed web socket.

Expected behavior

The streams are steady and stable.

Additional context

Possible temporary mitigation: propagate the possibility of disabling multiplexing to the daml-react library.

stefanobaghino-da commented 2 years ago

For further details, see: https://github.com/digital-asset/daml/issues/12381