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

[BUG] onError: ErrorCode.JoinChannelRejected #56

Closed
moesaid opened this issue Dec 3, 2021 · 7 comments
Closed

[BUG] onError: ErrorCode.JoinChannelRejected #56

moesaid opened this issue Dec 3, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@moesaid
Copy link

moesaid commented Dec 3, 2021

Describe the bug
getting error on joining a room

Local video state changed state: LocalVideoStreamState.Failed and error: LocalVideoStreamError.DeviceNotFound
onError: ErrorCode.JoinChannelRejected

To Reproduce
Steps to reproduce the behavior:
once on

Expected behavior

  • so once joining a room on a video call I get the error
  • if joining on a real device I get the error but I join the call
  • using IOS simulator I get the error with joining the call

Screenshots

image
Imgur
Imgur

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Iphone 8+
  • Device: simulator 13
  • Os: 15
@moesaid moesaid added the bug Something isn't working label Dec 3, 2021
@tadaspetra
Copy link
Contributor

First thing I would check is that the tempToken isn't expired. It expires every 24 hours. Was this working before, or has it never worked?

@moesaid
Copy link
Author

moesaid commented Dec 7, 2021

Hi Tadas! love your videos buddy!
actually never worked tried multiple times regenerating tempToken on Agora console, and experienced the same error.

@tadaspetra
Copy link
Contributor

Thank you so much! That really means a lot :)

But can you try to run the example app that we have in the repo, and see if that works. I am wondering whether this could be something to do with GetX initialization. According to the documentation, these are some possible reasons for that error, but from what you shared those aren't likely. One of my guesses is that GetX doesn't initialize it appropriately. If you try with the basic example app would be great

Screen Shot 2021-12-07 at 2 24 27 PM

@moesaid
Copy link
Author

moesaid commented Dec 11, 2021

I didn't have a chance to run the example, but for sure will do so this week. I will let you know :)

@moesaid
Copy link
Author

moesaid commented Dec 15, 2021

running the example

flutter: Error occured while initializing Agora RtcEngine: PlatformException(7, not initialized, null, null)
[VERBOSE-2:ui_dart_state.cc(209)] Unhandled Exception: Null check operator used on a null value
#0      SessionController.joinVideoChannel
package:agora_uikit/controllers/session_controller.dart:397
<asynchronous suspension>
#1      AgoraClient.initialize
package:agora_uikit/src/agora_client.dart:69
<asynchronous suspension>
#2      _MyAppState.initAgora
package:agora_uikit_example/main.dart:32
<asynchronous suspension>

@Meherdeep
Copy link
Contributor

@moesaid The error code 7 occurs when your RtcEngine hasn't been initialized. Please make sure that you're passing the correct AppId and a valid token.

@Meherdeep
Copy link
Contributor

@moesaid Closing this issue for now. Feel free to open it again if you're still facing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants