Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CANNOT_MEET_AREA_DEMAND #35

Open
maddentist opened this issue Sep 10, 2020 · 2 comments
Open

CANNOT_MEET_AREA_DEMAND #35

maddentist opened this issue Sep 10, 2020 · 2 comments

Comments

@maddentist
Copy link

Describe the bug
I'm trying to implement you modul step by steps. It stops at this.agoraService.client.join(null, '1000', null, (uid) => {}); with CANNOT_MEET_AREA_DEMAND error message. Apparently, the area must be set as per aogra IO documentation but I can find it nowhere in tour code/docs

To Reproduce
Follow the implentation explaination on the main github page for this project from outside the US.

Expected behavior
It should work

@adigeleon
Copy link

I have this problem also. In this link https://stackoverflow.com/questions/63974051/get-server-node-failed-cannot-meet-area-demand-https-webrtc2-ap-web-2-agorai/64009870?noredirect=1#comment113221314_64009870 he suggested to me adding areaCode property like this:
this.client = this.ngxAgoraService.createClient({ mode: 'rtc', codec: 'h264',areaCode:'GLOBAL' });
but when i add this code i am getting this error:
Error TS2345 (TS) Argument of type '{ mode: "rtc"; codec: "h264"; areaCode: string; }' is not assignable to parameter of type 'ClientConfig'.
Object literal may only specify known properties, and 'areaCode' does not exist in type 'ClientConfig'.

@adigeleon
Copy link

adding "areaCode: string[]" in client-config.model.ts file works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants