MAXIMUM_NUMBER_OF_STREAMS Error

I am running a React App against a local sandbox.
Every few hours the sandbox crashes with the following error

ABORTED: MAXIMUM_NUMBER_OF_STREAMS(2,0): The number of streams in use (1000) has reached or exceeded the limit (1000).

I have implemented a pattern where certain contracts (around 12) retrieve data from the sandbox with useStreamQueries and are stored in a React context. Could this be the source of my problem, or is there another potential cause?

1 Like

Hi @galiliyo this is a known bug in Daml 2.5.0. See the JSON API section in the 2.5.1 release notes.

You can work around it by increasing the resource limit for number of streams, but my recommendation is to upgrade to 2.5.1.

1 Like