1001, User ... again :(

Sorry for again, but i dont understand where is the problem. I have account and two user - with plan and without plan.

Sometimes when i use create meeting API all is ok.

But sometimes (for all account) i cant add meeting. I have two returns:

{“code”:1001,“message”:“User does not exist: *****Thq8YxaFnps.”}
or
{“code”:200,“message”:“Invalid api key or secret.”}

I dont see this request in logs in https://marketplace.zoom.us/user/logs too. Rejection of the request when bad user oraz api keys is normal, but in this case userId and API keys its okey.

{
“topic”: “Zaj\u0119cia grupy Grupa Angielski”,
“type”: “2”,
“start_time”: “2020-08-18T07:00:00+02:00”,
“duration”: 90,
“timezone”: “Europe/Warsaw”,
“password”: “”,
“pmi”: “**724729”,
“recurrence”: {
“type”: 1,
“repeat_interval”: 1,
“end_date_time”: “2020-08-18T07:00:00+02:00”
},
“settings”: {
“host_video”: “true”,
“participant_video”: “true”,
“cn_meeting”: “false”,
“in_meeting”: “false”,
“join_before_host”: “false”,
“mute_upon_entry”: “false”,
“watermark”: “false”,
“approval_type”: 2,
“waiting_room”: “true”,
“use_pmi”: “true”,
“registration_type”: 1,
“audio”: “both”,
“auto_recording”: “disabled”,
“enforce_login”: “false”,
“registrants_email_notification”: “false”
}
}

Today we made wide tests. The results are strange. We have three response type:

  1. OK
  2. “code”:1001,“message”:“User does not exist" - was described above
  3. “code”:200,“message”:“Invalid api key or secret."

Ad. 3

https://api.zoom.us/v2/
{
“topic”: “Zaj\u0119cia grupy EK3 z dnia 2020-08-26 10:00”,
“type”: “2”,
“start_time”: “2020-08-26T10:00:00+02:00”,
“duration”: 60,
“schedule_for”: “******77Thq8YxaFnps4xQ”,
“timezone”: “Europe/Warsaw”,
“password”: “”,
“pmi”: null,
“recurrence”: {
“type”: 1,
“repeat_interval”: 1,
“end_date_time”: “2020-08-26T10:00:00+02:00”
},
“settings”: {
“host_video”: “true”,
“participant_video”: “true”,
“cn_meeting”: “false”,
“in_meeting”: “false”,
“join_before_host”: “false”,
“mute_upon_entry”: “false”,
“watermark”: “false”,
“approval_type”: 2,
“waiting_room”: “true”,
“use_pmi”: “false”,
“registration_type”: 1,
“audio”: “both”,
“auto_recording”: “disabled”,
“enforce_login”: “false”,
“registrants_email_notification”: “false”
}
}
{
“Authorization”: "Bearer ",
“Content-Type”: “application/json”,
“Accept”: “application/json”
}

Exception:
GuzzleHttp\Exception\ClientException: Client error: POST https://api.zoom.us/v2/users/******77Thq8YxaFnps4xQ/meetings resulted in a 400 Bad Request response:
{“code”:200,“message”:“Invalid api key or secret.”}
in /core/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113
Stack trace:
#0 /core/vendor/guzzlehttp/guzzle/src/Middleware.php(65): GuzzleHttp\Exception\RequestException::create(Object(GuzzleHttp\Psr7\Request), Object(GuzzleHttp\Psr7\Response))
#1 /core/vendor/guzzlehttp/promises/src/Promise.php(203): GuzzleHttp\Middleware::GuzzleHttp{closure}(Object(GuzzleHttp\Psr7\Response))
#2 /core/vendor/guzzlehttp/promises/src/Promise.php(156): GuzzleHttp\Promise\Promise::callHandler(1, Object(GuzzleHttp\Psr7\Response), Array)
#3 /core/vendor/guzzlehttp/promises/src/TaskQueue.php(47): GuzzleHttp\Promise\Promise::GuzzleHttp\Promise{closure}()
#4 /core/vendor/guzzlehttp/promises/src/Promise.php(246): GuzzleHttp\Promise\TaskQueue->run(true)
#5 /core/vendor/guzzlehttp/promises/src/Promise.php(223): GuzzleHttp\Promise\Promise->invokeWaitFn()
#6 /core/vendor/guzzlehttp/promises/src/Promise.php(267): GuzzleHttp\Promise\Promise->waitIfPending()
#7 /core/vendor/guzzlehttp/promises/src/Promise.php(225): GuzzleHttp\Promise\Promise->invokeWaitList()
#8 /core/vendor/guzzlehttp/promises/src/Promise.php(62): GuzzleHttp\Promise\Promise->waitIfPending()
#9 /core/vendor/guzzlehttp/guzzle/src/Client.php(183): GuzzleHttp\Promise\Promise->wait()
#10 /Zoom/Interfaces/Request.php(109): GuzzleHttp\Client->request(‘POST’, ‘https://api.zoo…’, Array)
#11 /Zoom/Endpoint/MeetingsService.php(44): AppBundle\Service\Zoom\Interfaces\Request->post(‘users/******77T…’, Array)

I am very confused because in other cases it works for the same user. I will try to update the guzzlehttp library.

Hey @dariusz.walkiewicz,

Can you please provide steps to reproduce the issue, including the request url and request body JSON?

Thanks,
Tommy

First example (work corectly):
https://api.zoom.us/v2/
{
“topic”: “Zaj\u0119cia grupy Grupa 1-osobowa z dnia 2020-08-20 17:00”,
“type”: “2”,
“start_time”: “2020-08-20T17:00:00+02:00”,
“duration”: 60,
“schedule_for”: “*****qdPRRKLht_GlNZy9Q”,
“timezone”: “Europe/Warsaw”,
“password”: “”,
“pmi”: null,
“recurrence”: {
“type”: 1,
“repeat_interval”: 1,
“end_date_time”: “2020-08-20T17:00:00+02:00”
},
“settings”: {
“host_video”: “true”,
“participant_video”: “true”,
“cn_meeting”: “false”,
“in_meeting”: “false”,
“join_before_host”: “false”,
“mute_upon_entry”: “false”,
“watermark”: “false”,
“approval_type”: 2,
“waiting_room”: “true”,
“use_pmi”: “false”,
“registration_type”: 1,
“audio”: “both”,
“auto_recording”: “disabled”,
“enforce_login”: “false”,
“registrants_email_notification”: “false”
}
}
{
“Authorization”: "Bearer ",
“Content-Type”: “application/json”,
“Accept”: “application/json”
}

Response:
{
“uuid”: “GH3aBx0ZTqStGzCxTdT+Wg==”,
“id”: ***********,
“host_id”: “*****qdPRRKLht_GlNZy9Q”,
“topic”: “Zaj\u0119cia grupy Grupa 1-osobowa z dnia 2020-08-20 17:00”,
“type”: 2,
“status”: “waiting”,
“start_time”: “2020-08-20T15:00:00Z”,
“duration”: 60,
“timezone”: “Europe/Warsaw”,
“created_at”: “2020-08-17T18:40:27Z”,
“start_url”: “https://us02web.zoom.us/s/86999907001?zak=”,
“join_url”: “https://us02web.zoom.us/j/86999907001”,
“settings”: {
“host_video”: true,
“participant_video”: true,
“cn_meeting”: false,
“in_meeting”: false,
“join_before_host”: false,
“mute_upon_entry”: false,
“watermark”: false,
“use_pmi”: false,
“approval_type”: 2,
“audio”: “both”,
“auto_recording”: “none”,
“enforce_login”: false,
“enforce_login_domains”: “”,
“alternative_hosts”: “”,
“close_registration”: false,
“registrants_confirmation_email”: true,
“waiting_room”: true,
“request_permission_to_unmute_participants”: false,
“global_dial_in_countries”: [
“US”
],
“global_dial_in_numbers”: [
{
“country_name”: “US”,
“number”: “+1 9292056099”,
“type”: “toll”,
“country”: “US”
},
{
“country_name”: “US”,
“number”: “+1 2532158782”,
“type”: “toll”,
“country”: “US”
},
{
“country_name”: “US”,
“number”: “+1 3017158592”,
“type”: “toll”,
“country”: “US”
},
{
“country_name”: “US”,
“number”: “+1 3126266799”,
“type”: “toll”,
“country”: “US”
},
{
“country_name”: “US”,
“number”: “+1 3462487799”,
“type”: “toll”,
“country”: “US”
},
{
“country_name”: “US”,
“number”: “+1 6699006833”,
“type”: “toll”,
“country”: “US”
}
],
“registrants_email_notification”: false,
“meeting_authentication”: false
},
“code”: 201
}

Second (not correctly):
https://api.zoom.us/v2/
{
“topic”: “Zaj\u0119cia grupy Grupa Angielski Zaawansowany z dnia 2020-08-21 10:00”,
“type”: “2”,
“start_time”: “2020-08-21T10:00:00+02:00”,
“duration”: 60,
“schedule_for”: “*****qdPRRKLht_GlNZy9Q”,
“timezone”: “Europe/Warsaw”,
“password”: “”,
“pmi”: “6829139254”,
“recurrence”: {
“type”: 1,
“repeat_interval”: 1,
“end_date_time”: “2020-08-21T10:00:00+02:00”
},
“settings”: {
“host_video”: “true”,
“participant_video”: “true”,
“cn_meeting”: “false”,
“in_meeting”: “false”,
“join_before_host”: “false”,
“mute_upon_entry”: “false”,
“watermark”: “false”,
“approval_type”: 2,
“waiting_room”: “true”,
“use_pmi”: “true”,
“registration_type”: 1,
“audio”: “both”,
“auto_recording”: “disabled”,
“enforce_login”: “false”,
“registrants_email_notification”: “false”
}
}
{
“Authorization”: “Bearer”,
“Content-Type”: “application/json”,
“Accept”: “application/json”
}

Exception:
GuzzleHttp\Exception\ClientException: Client error: POST https://api.zoom.us/v2/users/*****qdPRRKLht_GlNZy9Q/meetings resulted in a 404 Not Found response:
{“code”:1001,“message”:“User does not exist: *****qdPRRKLht_GlNZy9Q.”}
in …/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113

Sometimes i have exception: bad api keys. And i dont see both types request in logs https://marketplace.zoom.us/user/logs.

*This post has been edited to remove any meeting / webinar IDs

Hey @dariusz.walkiewicz,

Is user *****qdPRRKLht_GlNZy9Q in apart of your Zoom account? Please see the prerequisites for the schedule_for feature here:

Thanks,
Tommy

In my opinion, schedule_for is not problem. I added schedule_for to interface because i looked for solution.

In one case i can add meeting but in other - using this same interface, methods, keys and id user - i have response: user does not exist or invalid api key or secret. I dont see this transaction in log too.

I using three steps to add meeting:

  • i geting users list from platform (via API /users) - always working good and i see this transaction in log
  • check meetings for selected user (via API /users/{userId}/meetings) - always working good and i see this transaction in log
  • i create meeting (via API /users/{userId}/meetings) - in ~90-95% working, but sometimes (using this same interface, methods, keys and id user) i have response: user does not exist or invalid api key or secret. And i dont see this transaction in log.

I don’t understand why i get info - User does not exist or Invalid api key or secret - when one step before create meeting via /users/{userId}/meetings all works fine.

Hey @dariusz.walkiewicz,

Can you please share the userIds that are not working when creating the meetings to developersupport@zoom.us so we can debug?

Thanks,
Tommy

Of course. I sending.

1 Like

Thanks @dariusz.walkiewicz!

-Tommy

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