OpenVRTwitchChat
OpenVRTwitchChat copied to clipboard
Error "400" codes in latest source
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://localhostinto 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 GITHUBwith 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 GITHUBwith 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";YourClientIdHereshould 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.