Skip to content

Commit

Permalink
fix(socket): SSL error on Twitch PubSub start
Browse files Browse the repository at this point in the history
  • Loading branch information
iGoodie committed Jun 16, 2020
1 parent 51ab9d7 commit 065b06e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -5,7 +5,7 @@ org.gradle.daemon=false

mod_id=twitchspawn
mod_group=net.programmer.igoodie
mod_version=0.5.4
mod_version=0.5.5

minecraft_version=1.12.2
forge_version=14.23.3.2655
Expand Down
Expand Up @@ -86,7 +86,7 @@ protected JSONObject createAuthJSON(CredentialsConfig.Streamer streamer) {
return authentication;

} catch (JSONException e) {
throw new InternalError("TODO: Error message");
throw new InternalError("TODO: Error message", e);
}
}

Expand All @@ -97,13 +97,13 @@ protected JSONObject createPingJSON() {
return ping;

} catch (JSONException e) {
throw new InternalError("TODO: Error message");
throw new InternalError("TODO: Error message", e);
}
}

protected String nicknameToIDSync(String nickname) {
try {
URL url = new URL("https://decapi.me/twitch/id/" + nickname);
URL url = new URL("http://decapi.me/twitch/id/" + nickname);
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("GET");

Expand All @@ -116,7 +116,7 @@ protected String nicknameToIDSync(String nickname) {

} catch (IOException e) {
// TODO: Unknown username too :p
throw new InternalError("TODO: Error message");
throw new InternalError("TODO: Error message", e);
}
}

Expand Down

0 comments on commit 065b06e

Please sign in to comment.