Zoom Create Meeting API with Alternative host returns null JSON response

Description
I am getting a successful JSON response back for “Create meeting” when I do not pass “alternative_hosts” in the request, however, as soon as I try to add “alternative_hosts” in the request, I do get HTTP Code - 404 (which is invalid user for given Zoom account) but not getting any JSON response with error code and message. The same works fine in postman and I can see the below response:
{
“code”: 1113,
“message”: " is not a user in your Zoom account."
}

For JSON request:
{“duration”:"",“start_time”:“2020-12-26 09:00:00”,“settings”:{“waiting_room”:false,“alternative_hosts”:"",“use_pmi”:null,“approval_type”:0},“topic”:“Online meeting for booking”,“type”:2}

Error
No JSON response is returned in the body through Java code. It does return HTTP response as 404 as expected.

In postman, it returns 400 Bad Request but in Zoom’s test environment here (https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate) returns 404. See screenshots for both.

Getting below in printstacktrace:
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: java.io.FileNotFoundException: https://api.zoom.us/v2/users/me/meetings
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.reflect.GeneratedConstructorAccessor61.newInstance(Unknown Source)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at java.lang.reflect.Constructor.newInstance(Constructor.java:437)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1962)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1957)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at java.security.AccessController.doPrivileged(AccessController.java:734)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1956)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1526)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1510)
[17D8:02FA-22C4] 25/11/2020 03:04:59 PM HTTP JVM: at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:1)

Which App Type (OAuth / Chatbot / JWT / Webhook)?
JWT

Which Endpoint/s?
https://api.zoom.us/v2/users/me/meetings

Hey @baljit.karwal,

When you’re using the Zoom test request section on our website, how are you authenticating with the API? For the test request in the documentation, make sure that you’re logged in to the expected account. Postman is returning the correct error, the user needs to be a paid user as an alternative host.

When it comes to seeing the request body in Java, have you confirmed that you are able to print the response body of other requests as expected?

Thanks,
Max

1 Like

Hi Max,

Yes, I am able to print the response for other requests where it is success (201) but not for 404 or 400.

Baljit Karwal
Web Developer

CONFIDENTIALITY NOTICE AND DISCLAIMER
This email (including any attachment with it) is from Primaxis Pty Ltd. The contents are confidential and may also be privileged and exempt from disclosure under applicable law. Accordingly the email is intended only for the named recipient of the email. If the reader of this email is not the intended recipient you are hereby notified that any use, copying, disclosure or distribution of the information contained in the email is strictly prohibited. If you received this email in error, please reply to us immediately at the above email address and delete the document from your email system. Any loss or damage caused by using this material are not the senders responsibility. No guarantee is made that this material is free from computer virus or other defect.

Hey @baljit.karwal,

I have messaged you privately about this matter.

Thanks,
Tommy

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.