Getting error 101 at the time of voice calling method agoraEngine.registerEventHandler

54 Views Asked by At
agoraEngineRef.current = createAgoraRtcEngine();
const agoraEngine = agoraEngineRef.current;
agoraEngine.initialize({
  appId: appId,
});

agoraEngine.registerEventHandler({
  onError: (err, msg) => {
    console.log("ERROR", err);
    console.log("msg", msg);
  },
});

While implementing Agora voice calling, when I call registerEventHandler in this method, I am getting error 101.

1

There are 1 best solutions below

0
user1280483 On

According to the error code list for Agora 3, error 101 is invalid app id. So you should probably check if your appId is valid or not.