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

Unable to fetch clips from public broadcaster.. Error 400 #1

Open
lebedynskyi opened this issue Dec 1, 2023 · 0 comments
Open

Unable to fetch clips from public broadcaster.. Error 400 #1

lebedynskyi opened this issue Dec 1, 2023 · 0 comments

Comments

@lebedynskyi
Copy link

lebedynskyi commented Dec 1, 2023

make a call with params twitchcm -fetch -chId monkeys_forever

where monkeys_forever is a public broadcaster https://www.twitch.tv/monkeys_forever/clips?filter=clips&range=all

And the repsonse is :

Request body:
Response code: 200
Response text:
{"access_token":"REDUCED_TOKEN","expires_in":4818719,"token_type":"bearer"}
{clientId=REDUCED_ID, client_secret=REDUCED_SECRET, token_type=Bearer, access_token=REDUCED_TOKEN, expires_in=4818719}
StartedAt 2023-11-24T11:01:41.041429Z
EndedAt 2023-12-01T11:01:41.045342Z
deltaPeriod PT24H
Response code: 400
java.io.IOException: Server returned HTTP response code: 400 for URL: https://api.twitch.tv/helix/users?id=monkeys_forever
Response text:
{"error":"Bad Request","status":400,"message":"Invalid username(s), email(s), or ID(s). Bad Identifiers."}
Cant process error response!
Can't get broadcaster login!
java.lang.NullPointerException: Cannot invoke "org.json.simple.JSONArray.get(int)" because "data_array" is null
at main.com.twitchcm.tool.Utils.getBroadcasterLogin(Utils.java:239)
at main.com.twitchcm.api.ClipsFetcher.fetchClips(ClipsFetcher.java:166)
at main.com.twitchcm.ClipsManager.fetchClips(ClipsManager.java:156)
at main.com.twitchcm.InputArgsProcessor.runFetch(InputArgsProcessor.java:213)
at main.com.twitchcm.InputArgsProcessor.runAction(InputArgsProcessor.java:97)
at main.com.twitchcm.InputArgsProcessor.run(InputArgsProcessor.java:657)
at main.Main.main(Main.java:10)

Error! The specified broadcasterId can't be found

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