Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. private YggdrasilSession parse(JSONObject response, String password) {
  2. System.out.println(response.toJSONString());
  3. String accessTokenValue = (String) response.get("accessToken");
  4. String clientTokenValue = (String) response.get("clientToken");
  5. JSONArray availableProfilesValue = (JSONArray) response.get("availableProfiles");
  6. JSONObject selectedProfileValue = (JSONObject) response.get("selectedProfile");
  7.  
  8. BigInteger accessToken = new BigInteger(accessTokenValue, 16);
  9.  
  10.  
  11.  
  12.  
  13.  
  14. //////
  15. //////
  16. //////
  17. Yikes
  18. //////
  19. //////
  20. //////
  21. java.io.IOException: Unable to parse server response
  22. at com.ItzKmaf.ConsoleClient.auth.YggdrasilAuthService.login(Unknown Source)
  23. at com.ItzKmaf.ConsoleClient.auth.YggdrasilAuthService.login(Unknown Source)
  24. at com.ItzKmaf.ConsoleClient.MinecraftClientWrapper.startAccount(Unknown Source)
  25. at com.ItzKmaf.ConsoleClient.discordStuff.Host.run(Unknown Source)
  26. at java.lang.Thread.run(Unknown Source)
  27. Caused by: java.lang.NumberFormatException: Illegal embedded sign character
  28. at java.math.BigInteger.<init>(Unknown Source)
  29. at com.ItzKmaf.ConsoleClient.auth.YggdrasilAuthService.parse(Unknown Source)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement