Skip to content

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

Description

@lebedynskyi

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

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