Getting response code 150

Hi,

Thanks Carson_Chen.
I am sharing my xcode screenshot after I click on Join Meeting button.
and I am also sharing function code which which is returning status code 150.

- (void) joinMeeting: (NSString*) meetingNo :(NSString*) userName :(NSString*) meetingPassword{
    NSLog(@"meetingNO: %@", meetingNo);
    NSLog(@"meeting password: %@",meetingPassword);
    NSLog(@"userName: %@",userName);
    
    if(![meetingNo length]) {
        // If the meeting number is empty, return error.
        NSLog(@"Please enter a meeting number");
        return;
    } else {
        // If the meeting number is not empty.
        MobileRTCMeetingService *service = [[MobileRTC sharedRTC] getMeetingService];
        
        if (service) {
            service.delegate = self;
            // initialize a parameter dictionary to store parameters.
            NSDictionary *paramDict = @{
                                        kMeetingParam_Username: userName,
                                        kMeetingParam_MeetingNumber:meetingNo,
                                        kMeetingParam_MeetingPassword:meetingPassword
                                        };
            
            MobileRTCMeetError response = [service joinMeetingWithDictionary:paramDict];
            
            NSLog(@"onJoinMeeting, response: %d", response);
        }
    }
}

Hi prajit,

Thanks for sharing the information. Your code looks good. Here are the steps from initialization to join a meeting:

  1. Set domain to be “zoom.us”, and successfully initialize the SDK
  2. Pass SDK key/secret, and successfully do the SDK authentication
  3. in onMobileRTCAuthReturn, get the return value == 0
  4. Prepare to join a meeting
    • Set root view controller
    • Initialize the delegate
    • Get meeting service
    • Prepare paramDict that includes username, meeting number, and password
  5. Pass to joinMeetingWithDictionary to join the meeting

Could you verify if you are setting the domain to be “zoom.us”? Could you hardcode the parameters in your code to see if you are able to join the meeting? Could you have a try with our demo app https://github.com/zoom/zoom-sdk-ios to see if you are able to join a meeting?

Thanks!

Hi Carson_Chen,

I have tried demo app it works fine , and yes I am using “zoom.us” as a domain but still not able to join meeting through our app. I also hardcoded the parameters in our app but still the same response code 150.

Hi prajit,

Thanks for the response. Glad to hear that the demo app is working fine and the domain is correctly set. Based on the information you provided, everything looks good, I tried the same code and same settings you provided on my side and everything is working fine. Could you refer to the implementation of the demo app:https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/join_meeting/SDKStartJoinMeetingPresenter%2BJoinMeetingOnly.m and see if that helps?

Thanks!

Hi Carson_Chen,

I have referred to the link you have provided but It didn’t help.
I have followed “https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/build-your-first-zoom-app/join-meeting” this tutorial for integrating zoom sdk with our app. May I know your best available time to have one on one conversation or any other mode of conversation, this will help us to solve prolonged issue.Please let me know your timezone as well.Also Carson_Chen You have tried my setting and code at your end and It is working so could you share that code/project with me so that I can check that as well.

Hi prajit,

Thanks for the reply. This forum would be the best way that I can provide assistance. Please refer to the implementation of the demo app in :https://github.com/zoom/zoom-sdk-ios/tree/master/MobileRTCSample/MobileRTCSample instead of the https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/build-your-first-zoom-app/join-meeting as some of the contents are outdated on this page.

The code snippet that I was trying is using our demo app. Our demo app has the same implementation as you did, https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/join_meeting/SDKStartJoinMeetingPresenter%2BJoinMeetingOnly.m, the difference is I am not getting the error code.

Could you verify if the following steps are correct and being proceeded in order in your app?

  1. Set domain to be “zoom.us”, and successfully initialize the SDK
  2. Pass SDK key/secret, and successfully do the SDK authentication
  3. in onMobileRTCAuthReturn, get the return value == 0
  4. Prepare to join a meeting
  • Set root view controller
  • Initialize the delegate
  • Get meeting service
  • Prepare paramDict that includes username, meeting number, and password
  1. Pass to joinMeetingWithDictionary to join the meeting

Hope this helps. Thanks!

Thank you so much for you help Carson_Chen

Please let us know if there is anything that we can help you. Happy Zooming!

Thanks for reply Carson_Chen,
Can we hide powered by zoom logo on meeting screen.

Hi prajit,

Thanks for the post. You may contact the ISV team for the details of removing the watermark. Please see: https://zoom.us/plan/api

Thanks!

1 Like

Greetings, @Carson_Chen

I have a diferent problem when try to CREATE a meeting, im using SDK v4.4.55968.0904, problem is i’m getting error code 150, when parameter isAppShare is false and true either

Notice sdk auth & login (withEmail,password) are correct, i check documentation for missing parameters but it is the same code, i’m missing something?

Hi operea,

Thank you very much for the code snippet. I tried exactly the same code you have and I am able to start a meeting with this. The following situation could cause the start meeting method returns 150:

  1. The param is invalid
  2. The web domain is not correctly set at initialization
  3. Since you are using the parameter object for logged in user, if the user is not logged in, then it will return 150. Please note that our login method is async, please wait for the login status to be success in the onMobileRTCLoginReturn callback before you perform the start meeting action
  4. Meeting number is invalid

You may refer to the implementation in our demo app for this:https://github.com/zoom/zoom-sdk-ios/blob/master/MobileRTCSample/MobileRTCSample/SDKPresenters/how_to_start_join_meeting/start_with_login_user/SDKStartJoinMeetingPresenter%2BLoginUser.m, or you may refer to our documentation for further details: https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/start-join-meeting/email-login-user/authentication. Both demo and doc are written in objc, but the concept is the same with Swift.

Hope this helps. Thanks!

Greetings @Carson_Chen,

I stop trying to start meeting process, so i try to join a meeting, with same error 150.

I think situation 1 is the problem, i try to change data type to NSDictionary but function .joinMeeting(with: ) require a downcast to accept parameter, i try also with Dictionary<String,Any> and [AnyHashable,Any] data type, with same result.

The situations 2,3,& 4, are correct implemented so I discard them, console shows correct auth & login callbacks, meeting number is valid, and web domain is correctly set.

I double check the documentation and your demo, objC demo code send NSDictionary data type, but swift integration does not accept this data tipe directly in to the function, when you tried the same code, what data type did you use into the function?

I found also, the demo app shows an alert to set an user name and a password after the meeting number & password input, this is necessary for join a meeting process?, this step is not in the documentation.

Thanks.

Hi operea,

Thanks for the reply and the detail information. We will look into the case you are mentioning and get back to asap.

Thanks

Hi Carson,

We are having the same 150 error after we upgrade to the latest SDK. With the previous SDK we can create and join meetings successfully.

2019-11-04 @ [v4.4.56624.1028] SDK

static let domain = “zoom.us
static let appKey = “xxx”
static let appSecret = “yyy”

func joinMeeting() {

   let meetingService = MobileRTC.shared().getMeetingService() else { return }
    
    var paramDict: [String : Any] = [
        kMeetingParam_Username : name,
        kMeetingParam_MeetingNumber : "\(number)",
        kMeetingParam_MeetingPassword : password,
        kMeetingParam_NoAudio : true,
        kMeetingParam_NoVideo : true
    ]

    let returnValue = meetingService.joinMeeting(with: paramDict)

}

I see what you say looks right. In addition, I also tested our sample, and everything was work.
Therefore, I hope you can take a closer look at our integration document and refer to our sample project.
One thing to note is that auth success is a prerequisite for everything.

Did you found something?, You never answer the questions about how do you implement this in swift so, what data type did you use into the function?


I created a new swift project using v4.4.56624.1028. Everything work.

So I don’t know what the root cause of your problem is.
So I hope you can check the following first:
Is there a problem with SDK integration?
SDK initialization and auth have been successful, auth is a prerequisite for everything else.

If you still cannot join, we hope you can provide the log for us to troubleshoot your problem. In addition, I want to know what is your version of xocde?

Thanks.

Greetings @Murray_Li ,

I changed SDK to the new one, same version you mentioned, but when I try to replicate authentication code, not recognize the context line.

So I get back to the code that already work, SDK initialization and auth is success, next the problem 150 in params is still there.

Xcode ver. is 11.2.1
Thank you.

Hi operea,

Thanks for the reply and the screenshot. Really appreciate it. I have tried the same code as you have shown in your screenshot and I am not able to see the error:

Our engineer has created a sample project in Swift that simply init the SDK and join a meeting, you may find it here: https://drive.google.com/open?id=14ohqz882sWOzj9Ov8A7Y60nKoE7PFoOv

You may cross-reference with your project and please pay attention to the following when integrating:

Please have a try and hope it is helpful for you.