# Uncaught Error: Reducers may not dispatch actions

**URL:** <https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591>\
**Category:** Web\
**Created:** [March 25, 2021, 2:24pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591 "2021-03-25T14:24:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![digix.sameera](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/digix.sameera/32/23747_2.png) [@digix.sameera](https://devforum.zoom.us/u/digix.sameera)\
**Post date:** [March 25, 2021, 2:24pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/1 "2021-03-25T14:24:57Z")

</div>

When my web SDK opens. it shows me this error

```
redux.min.js:1 Uncaught Error: Reducers may not dispatch actions.
at a (redux.min.js:1)
at redux-thunk.min.js:1
at dispatch (redux.min.js:1)
at zoom-meeting-1.9.1.min.js:2
at Object.dispatch (redux-thunk.min.js:1)
at y.value (zoom-meeting-1.9.1.min.js:2)
at x (zoom-meeting-1.9.1.min.js:2)
at Object.expel (zoom-meeting-1.9.1.min.js:2)
at generate?enc=eyJp.......
at HTMLDivElement.<anonymous> (zoom-meeting-1.9.1.min.js:2)

```

 ![error_zoom](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/f/7faf4cf35d80b9b006248b22203f5730652c6aa9.png)

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 26, 2021, 5:59pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/2 "2021-03-26T17:59:19Z")

</div>

Hey @digix.sameera,

Thank you for reaching out to the Zoom Developer Forum. First, I would make sure that you are [importing dependencies](https://marketplace.zoom.us/docs/sdk/native-sdks/web/build#integrate) either through the CDN or Local method but not both. As you build your application, I recommend using one of our sample apps as a reference:

- [Sample Web App](https://github.com/zoom/sample-app-web)
- [Sample Angular App](https://github.com/zoom/websdk-sample-angular)
- [Sample Vue.js App](https://github.com/zoom/websdk-sample-vuejs)

If that isn’t helpful, please provide a public git repo that has code I can use to reproduce the issue.

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [March 31, 2021, 1:51pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/3 "2021-03-31T13:51:44Z")

</div>

I’m also running into this issue, I’ve switched to the cdn and am using zoom websdk version 1.9.1.

The call seems fine initially, then after a couple minutes it crashes out for all users. I tested this with 3-4 users.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 2, 2021, 10:55pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/4 "2021-04-02T22:55:43Z")

</div>

Hey @zulu ,

Does this error crash the Web SDK for you? Or is it just a passive error? (I have not seen this error before).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [April 7, 2021, 8:26am UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/5 "2021-04-07T08:26:42Z")

</div>

Yes, this is on the Web SDK. It completely black screens the call for all users, and then tries to reconnect them, but just continues to crash and attempt a reconnect in a loop.

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [April 7, 2021, 9:17pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/6 "2021-04-07T21:17:33Z")

</div>

Hey @zulu,

When this happens, do you see any errors in the browser console? Also, are you seeing this issue when testing with the [Sample Web App](https://github.com/zoom/sample-app-web)?

Thanks,  
Max

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [April 23, 2021, 10:48am UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/7 "2021-04-23T10:48:58Z")

</div>

Hi Max,

Finally got a screenshot of the errors I’m encountering. It was fine with a host and two people, but as soon as the third joined it crashed the site to a white screen & killed the call in the app. Here is a screenshot of the error that was thrown:

The WebGL warnings were thrown prior to the crash and were just mounting up, then as soon as the fourth person joined I was given the errors.

 ![Screenshot 2021-04-23 at 11.47.29](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/e/6e0fe84272c7a0880a9b040724bbc5ec2f81c661.png) ![Screenshot 2021-04-23 at 11.47.20](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/b/5/b5b5e415add2db6b8aa0a00d4aa439f7dd7ad5a8.png)

---

<div class="post-metadata">

**Author:** ![zulu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/zulu/32/15247_2.png) [@zulu](https://devforum.zoom.us/u/zulu)\
**Post date:** [April 23, 2021, 11:19am UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/8 "2021-04-23T11:19:56Z")

</div>

For reference, this is the js code I’m using to setup the meeting on the site. I’m using " Import Through CDN" from the documentation to get react, react-thunk etc.

```auto
const restUrl = document.currentScript.getAttribute( 'data-rest' );

let currentScript = document.currentScript;

let zoomData = '';

fetch(restUrl)
	.then((response) => { return response.json(); })
	.then((data) => {

		zoomData = data;

		if ( "1" === data.isWebinar ) {

			createPopup();
		} else {
			run_zoom();
		}

	}
);

const createPopup = () => {

	const popupMarkup = `
		<div id="uob-webinar-form" class="uob-webinar-form">
			<div class="window">
				<p>To join this webinar you must first enter your email address</p>
				<form id="join_webinar">
					<input type="email" id="webinar_email" name="webinar_email" placeholder="Email address" required />
					<button type="submit" class="custom-zoom-btn join">Join Webinar</button>
				</form>
			</div>
		</div>
	`;

	document.body.insertAdjacentHTML( 'beforeend', popupMarkup );

	document.getElementById( 'join_webinar' ).addEventListener( 'submit', submitEmail )
}

const submitEmail = (e) => {

	e.preventDefault()

	if ( document.getElementById( 'webinar_email' ).value ) {
		run_zoom( document.getElementById( 'webinar_email' ).value )

		document.getElementById( 'uob-webinar-form' ).remove();
	}
}

function run_zoom( email = '' ) {

	ZoomMtg.setZoomJSLib( 'https://dmogdx0jrul3u.cloudfront.net/1.9.1/lib', '/av' ); 
	ZoomMtg.preLoadWasm();
	ZoomMtg.prepareWebSDK();

	ZoomMtg.init({
		leaveUrl: zoomData.url,
		isSupportAV: true,
		screenShare: false,
		disableInvite : true,
		isSupportChat: false,
		isSupportQA: true,
		isSupportPolling: true,

		success: (success) => {

			ZoomMtg.join({
				signature: zoomData.signature,
				meetingNumber: zoomData.meeting_id,
				userName: 'user' + getRandomInt( 99999 ),
				apiKey: zoomData.key,
				passWord : zoomData.meeting_password,
				userEmail: email,
				success: (success) => {

					// console.log( success )

					ZoomMtg.getCurrentUser({
						success (response) {
							console.log( success )
							ZoomMtg.mute({userId: response.result.currentUser.userId, mute: true});
						},
						error (error) {
							console.log( error )
						}
					});

					ZoomMtg.inMeetingServiceListener('onUserLeave', function (data) {
						parent.document.getElementById( 'zoom-container' ).remove();
					});

					let button = document.createElement( 'button' );
					button.id = 'custom-leave-btn';
					button.classList.add( 'custom-zoom-btn', 'end' );
					button.innerHTML = 'Leave Meeting';

					currentScript.parentNode.append( button );

					button.addEventListener( 'click', function() {
						ZoomMtg.leaveMeeting();
						parent.document.getElementById( 'zoom-container' ).remove();
					});

				},
				error: (error) => {
					console.log( 'failed to join' )
					console.log( error )
				}
			});
		},
		error: (error) => {
			console.log( 'failed to init' )
			console.log( error )
		}
	});
}

function getQueryString() {
	var queryStringKeyValue = window.parent.location.search.replace('?', '').split('&');
	var qsJsonObject = {};
	if (queryStringKeyValue != '') {
		for (var i = 0; i < queryStringKeyValue.length; i++) {
			qsJsonObject[queryStringKeyValue[i].split('=')[0]] = queryStringKeyValue[i].split('=')[1];
		}
	}
	return qsJsonObject;
}

function getRandomInt(max) {
	return Math.floor(Math.random() * Math.floor(max));
}
```

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 26, 2021, 7:10pm UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/9 "2021-04-26T19:10:38Z")

</div>

Hi @zulu,

Thanks for sharing these details with us.

Based on the errors in the browser console, it looks like these may actually be related to your program/WebGL. If your app is crashing after these errors, it seems the root cause is related to how your WebGL is being called/built. Have you tried searching these errors on StackOverflow or similar?

Let us know,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 27, 2021, 5:10am UTC](https://devforum.zoom.us/t/uncaught-error-reducers-may-not-dispatch-actions/46591/10 "2021-05-27T05:10:48Z")

</div>

Closed on May 27, 2021, 5:10am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
