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

[BUG] getUsers is naughty. #43

Open
LeonusDH opened this issue Jun 11, 2022 · 1 comment
Open

[BUG] getUsers is naughty. #43

LeonusDH opened this issue Jun 11, 2022 · 1 comment

Comments

@LeonusDH
Copy link

LeonusDH commented Jun 11, 2022

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.

@LeonusDH
Copy link
Author

@Plazide What can you say about this?

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