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

Error "400" codes in latest source #21

Open
Hotrian opened this issue Sep 21, 2016 · 0 comments
Open

Error "400" codes in latest source #21

Hotrian opened this issue Sep 21, 2016 · 0 comments

Comments

@Hotrian
Copy link
Owner

Hotrian commented Sep 21, 2016

This is sort of a PSA for anyone who wants to build the source. This is not an actually error.

Twitch recently updated their API and it now requires passing the Client-ID when making API calls to Kraken. Please see #20.

Because of Twitch's changes to the API, it is now required to pass the Client-ID, which the build does. However, I did not want to upload my Client-ID directly into the source because I expect some users will be building this on their own, possibly integrating it into their own applications, etc.

To fix Error 400 you need to get a Client-ID:

  • Go to this page on Twitch
  • Enter an application name
  • Enter http://localhost into the Redirect URI (unless you have another site to enter here)
  • Select an application category
  • Click the Create button at the bottom
  • On the next page, copy your Client-ID

Now you need to insert your Client-ID into the source:

  • Replace REMOVED FOR GITHUB with your Client-ID on this line (Line 195 in that source)
    • Exact Line Number might change in the future, so I linked a specific commit's code.
  • Replace REMOVED FOR GITHUB with your Client-ID on this line (Line 251 in that source)
    • Exact Line Number might change in the future, so I linked a specific commit's code.
  • Both lines should now read headers["Client-ID"] = "YourClientIdHere";
    • YourClientIdHere should of course be the Client-ID given to you by Twitch.

This will fix the 400 Errors which are due to an invalid Client-ID being passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant