Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect key mapping from bad response payload to error handling method #477

Open
frankhock opened this issue Oct 9, 2024 · 0 comments

Comments

@frankhock
Copy link

frankhock commented Oct 9, 2024

Hello! first of all thanks to everyone who took the time to write this gem!

I'm trying to understand if this is a bug, or a detail I don't fully understand.

Below is the response I'm receiving from zoom when refreshing an expired token fails. I noticed the response does not include a code key, but the raise_error util method expects one?

CleanShot 2024-10-09 at 12 31 23@2x

https://github.com/kyleboe/zoom_rb/blob/main/lib/zoom/utils.rb#L14

def raise_error(response, http_code=nil)
        code = response['code']
        message = response['message']
        errors = response['errors']

        case http_code
        ...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant