Hey @tommy I am facing the similar error on integrating Web SDK:
zoomus-websdk.umd.min.js:2 Uncaught TypeError: Cannot read property ‘0’ of null
at v (zoomus-websdk.umd.min.js:2)
at combination (combineReducers.js:120)
at dispatch (createStore.js:165)
at index.js:14
at Object.zmg_initMeetingConfig (bindActionCreators.js:3)
at s.value (zoomus-websdk.umd.min.js:2)
at sentryWrapped (index.js:3204)
at A (zoomus-websdk.umd.min.js:2)
at Object.init (zoomus-websdk.umd.min.js:2)
at ZoomCall.js:74
Below are the scripts file I have added in my index.html (Removed < before script as the whole line was getting invisible ):
script src=“https://source.zoom.us/1.7.10/lib/vendor/react.min.js”>
script src=“https://source.zoom.us/1.7.10/lib/vendor/react-dom.min.js”>
script src=“https://source.zoom.us/1.7.10/lib/vendor/redux.min.js”>
script src=“https://source.zoom.us/1.7.10/lib/vendor/redux-thunk.min.js”>
script src=“https://source.zoom.us/1.7.10/lib/vendor/jquery.min.js”>
script src=“https://source.zoom.us/1.7.10/lib/vendor/lodash.min.js”>
script src=“https://source.zoom.us/zoom-meeting-1.7.10.min.js”>
Below is how I am generating signature from Django:
import hashlib
import hmac
import base64
import time
timestamp = int(round(time.time() * 1000)) - 30000
string_message = settings.ZOOM_API_KEY + str(request.GET.get('meeting_number')) + str(timestamp) +\
str(request.GET.get('role'))
message = base64.b64encode(bytes(string_message, 'utf-8'))
secret = bytes(settings.ZOOM_API_SECRET, 'utf-8')
hashing = hmac.new(secret, message, hashlib.sha256)
hashing = base64.b64encode(hashing.digest())
hashing = hashing.decode("utf-8")
temp_string = "%s.%s.%s.%s.%s" % (settings.ZOOM_API_KEY, str(request.GET.get('meeting_number')), str(timestamp),
str(request.GET.get('role')), hashing)
signature = base64.b64encode(bytes(temp_string, "utf-8"))
signature = signature.decode("utf-8")
return JsonResponse({'signature' :signature.rstrip("=")})
I am using ReactJS for client side code. I am generating signature from my backend in Django and then initializing Zoom in React:
ZoomMtg.init({
disableRecord: false,
videoDrag: true,
sharingMode: 'both',
success: () => {
ZoomMtg.showRecordFunction({
show: true
});
ZoomMtg.join(
{
meetingNumber: {MEETING_NUMBER},
userName: '',
signature: resp.data.signature,
apiKey: process.env.REACT_APP_ZOOM_API_KEY,
passWord: '',
success: (res) => {
console.log('join meeting success:', res);
},
error: (res) => {
console.log('Error point 1:', res);
}
}
);
},
error: (res) => {
console.log('Error point 2:', res);
}
});
Please have a look why this issue would have occurred.