API Endpoint(s) and/or Zoom API Event(s)
/meetings/{meetingId}/registrants
Description
I attempted to send requests to /meetings/${meetingId}/registrants five times using Promise.all, and all requests were successful.
Additionally, the x-ratelimit-limit value in every response was 3. (I expected 3, 2, 1, 0, and one request failed)
According to the documentation, the LIGHT API is supposed to return a 429 error when more than four requests are made per second. (I am using a FREE account.)
Is this a bug?
Error?
I expected a 429 error code to be returned, but no errors occurred.
How To Reproduce
async function postRegistrant(meetingId: number) {
return await fetch(
`https://api.zoom.us/v2/meetings/${meetingId}/registrants`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
Authorization: `Bearer {{token}}`,
},
body: JSON.stringify({
email: "abcdef@sample.jp",
first_name: "Taro",
last_name: "Tanaka",
}),
}
);
}
export async function addRegistrant() {
const ids = [89322014967, 84226493086, 83524245388, 85716176162, 88590793869];
const promises = ids.map(async (meetingId) => {
const response = await postRegistrant(meetingId);
console.log(response.statusText);
console.log(await response.json());
console.log("headers", response.headers);
});
await Promise.all(promises);
}