Getting Response Error 500

You’re calling a v5 endpoint with a token using Helix’s scopes. See the scopes for Twitch API v5 and documentation for /kraken/channels/<channel ID>. You’ll also need a user access token.