AgoraIO-Community / AgoraWebSDK-NG

The Next Generation of Agora Web SDK
https://agoraio-community.github.io/AgoraWebSDK-NG/
161 stars 75 forks source link

subscribe user 2444849064 error TypeError: b is not a function #149

Open nmakod opened 3 years ago

nmakod commented 3 years ago

Describe the bug

I'm trying to build a Preact component which takes care of rendering the Live streaming and can be used within couple of our web application. However when I add this component in the host web app, I'm getting the below error.

2:47:29:806 Agora-SDK [ERROR]: [client-b1f55] subscribe user 2444849064 error TypeError: b is not a function at Mk.eval (AgoraRTC_N-production.js?8c5e:23) at new Promise (<anonymous>) at Mk.setOfferSDP (AgoraRTC_N-production.js?8c5e:23) at eval (AgoraRTC_N-production.js?8c5e:23) log @ AgoraRTC_N-production.js?8c5e:23 error @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 Promise.then (async) eval @ AgoraRTC_N-production.js?8c5e:23 Promise.then (async) eval @ AgoraRTC_N-production.js?8c5e:23 subscribe @ AgoraRTC_N-production.js?8c5e:23 eval @ index.tsx?deb7:64 emit @ AgoraRTC_N-production.js?8c5e:23 _this123._handleAddAudioOrVideoStream @ AgoraRTC_N-production.js?8c5e:23 eval @ AgoraRTC_N-production.js?8c5e:23 emit @ AgoraRTC_N-production.js?8c5e:23 _this39.onWebsocketMessage @ AgoraRTC_N-production.js?8c5e:23 emit @ AgoraRTC_N-production.js?8c5e:23 _this37.websocket.onmessage @ AgoraRTC_N-production.js?8c5e:23 AgoraRTC_N-production.js?8c5e:23 Uncaught (in promise) TypeError: b is not a function at Mk.eval (AgoraRTC_N-production.js?8c5e:23) at new Promise (<anonymous>) at Mk.setOfferSDP (AgoraRTC_N-production.js?8c5e:23) at eval (AgoraRTC_N-production.js?8c5e:23)

SDK Logs

You should call enableLogUpload to enable log upload to Agora's Log Server.

Channel:

UID:

Platform and Browser:
Mac, Chrome

SDK Version: 4.5.0

To Reproduce

Steps to reproduce the behavior:

Additional context

Add any other context about the problem here.