8000 Incorrect key mapping from bad response payload to error handling method · Issue #477 · kyleboe/zoom_rb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Incorrect key mapping from bad response payload to error handling method #477
Open
@frankhock

Description

@frankhock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0