Get stream key by token

Your code does two validate requests
And a request to get stream key

Your log indicates the API call is failing not the token validation steps