Skip to content

webservice: get_recording_url_list error handling - #709

Merged
smbader merged 2 commits into
mainfrom
fix/get_recording_url_list-error-handling
Apr 16, 2026
Merged

webservice: get_recording_url_list error handling#709
smbader merged 2 commits into
mainfrom
fix/get_recording_url_list-error-handling

Conversation

@jrchamp

@jrchamp jrchamp commented Apr 14, 2026

Copy link
Copy Markdown
Owner

We need get_recording_url_list() to return an array of recordings. So when the API gives us an error message that means "there are no recordings", then we need to return an empty array (so that it matches). If the API gives us an error message that means "there was a problem when we tried to find the recordings", then we don't want to pretend that we know how many recordings there are (so we allow other exception types to bubble up). Finally, if there was no API error message, then we should have an API response that we can use. However, the code is written to assume that we know how the API response is structured. If the code is in the structure that we expect, then use it. Otherwise, we should throw our own "unexpected response structure" error message to avoid returning incorrect information.

Fixes #684
Fixes #704

jrchamp added 2 commits April 14, 2026 11:10
We need get_recording_url_list() to return an array of recordings. So
when the API gives us an error message that means "there are no
recordings", then we need to return an empty array (so that it matches).
If the API gives us an error message that means "there was a problem
when we tried to find the recordings", then we don't want to pretend
that we know how many recordings there are (so we allow other exception
types to bubble up). Finally, if there was no API error message, then we
should have an API response that we can use. However, the code is
written to assume that we know how the API response is structured. If
the code is in the structure that we expect, then use it. Otherwise, we
should throw our own "unexpected response structure" error message to
avoid returning incorrect information.
@jrchamp
jrchamp requested a review from a team April 14, 2026 09:36
@jrchamp jrchamp self-assigned this Apr 14, 2026
@jrchamp jrchamp added the bug Fixes problems or reduces technical debt label Apr 14, 2026

@cbounphengsy cbounphengsy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If any related issues related arise, the added error-handling will allow us to narrow down the cause.

@smbader

smbader commented Apr 16, 2026

Copy link
Copy Markdown
Collaborator

Thank you for this fix! Now we wait for AWS to go down again!

@smbader
smbader merged commit b4c0137 into jrchamp:main Apr 16, 2026
6 checks passed
@jrchamp
jrchamp deleted the fix/get_recording_url_list-error-handling branch April 17, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes problems or reduces technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

INQUIRY ABOUT ZOOM RECORDINGS Recording deleted after AWS outage on October 20, 4am EDT

3 participants