Invalid Parameter Exception

I’m using version 2.2.1 and getting this weird exception.

SendBird.min.js:119 Uncaught (in promise) SendBirdException: Invalid parameter. at Function.get (http://dev-ares.sangam.com/static/js/42.chunk.js:162638:16) at http://dev-ares.sangam.com/static/js/42.chunk.js:162632:404 at Array.forEach (<anonymous>) at Function.value (http://dev-ares.sangam.com/static/js/42.chunk.js:162631:18) at Function.value (http://dev-ares.sangam.com/static/js/42.chunk.js:168263:20) at http://dev-ares.sangam.com/static/js/42.chunk.js:141061:22 at commitHookEffectListMount (http://dev-ares.sangam.com/static/js/42.chunk.js:107754:30) at commitPassiveHookEffects (http://dev-ares.sangam.com/static/js/42.chunk.js:107791:15) at HTMLUnknownElement.callCallback (http://dev-ares.sangam.com/static/js/42.chunk.js:88333:18) at Object.invokeGuardedCallbackDev (http://dev-ares.sangam.com/static/js/42.chunk.js:88382:20) at invokeGuardedCallback (http://dev-ares.sangam.com/static/js/42.chunk.js:88435:35) at flushPassiveEffectsImpl (http://dev-ares.sangam.com/static/js/42.chunk.js:110855:13) at unstable_runWithPriority (http://dev-ares.sangam.com/static/js/42.chunk.js:132318:16) at runWithPriority$1 (http://dev-ares.sangam.com/static/js/42.chunk.js:99221:14) at flushPassiveEffects (http://dev-ares.sangam.com/static/js/42.chunk.js:110823:16) at performSyncWorkOnRoot (http://dev-ares.sangam.com/static/js/42.chunk.js:109738:7) at http://dev-ares.sangam.com/static/js/42.chunk.js:99275:28 at unstable_runWithPriority (http://dev-ares.sangam.com/static/js/42.chunk.js:132318:16) at runWithPriority$1 (http://dev-ares.sangam.com/static/js/42.chunk.js:99221:14) at flushSyncCallbackQueueImpl (http://dev-ares.sangam.com/static/js/42.chunk.js:99270:11) at flushSyncCallbackQueue (http://dev-ares.sangam.com/static/js/42.chunk.js:99258:7) at batchedUpdates$1 (http://dev-ares.sangam.com/static/js/42.chunk.js:109863:11) at Object.notify (http://dev-ares.sangam.com/static/js/42.chunk.js:118344:7) at Subscription.notifyNestedSubs (http://dev-ares.sangam.com/static/js/42.chunk.js:118384:20) at Subscription.handleChangeWrapper (http://dev-ares.sangam.com/static/js/42.chunk.js:118389:12) at Object.dispatch (http://dev-ares.sangam.com/static/js/42.chunk.js:129940:7) at dispatch (<anonymous>:3856:17) at http://dev-ares.sangam.com/static/js/42.chunk.js:46747:22 at Object.dispatch (http://dev-ares.sangam.com/static/js/42.chunk.js:129691:16) at dispatch (<anonymous>:14608:80)

The error is coming at the point where I’m calling dispatch. Any help is appreciated.