Skip to content

[BUG] getUsers is naughty. #43

@LeonusDH

Description

@LeonusDH

When I try to get a streamer by id, I get an error that id does not exist in principle. This is understandable, because the "getUsers" function returns two objects, not in an array, but with the same structure. Only the second object has an empty data: []. The funny thing is that this happens selectively. With some streamers everything is fine, with others not.

Can you explain to me why it works this way?

Code: https://sourceb.in/34sgxXKmTu (Removed some private data, like API KEY)
You should be interested in the function "getTwitchStreamerIdFromURL"

Sample of what I get: https://sourceb.in/a7FYkWWL2W

I believe this is a library and function issue in particular. But if you have any other ideas, or ways to fix this, I'm listening carefully.

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