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