delthas / JavaSkype

A lightweight, comprehensive Java API for Skype using MSNP24
MIT License
72 stars 28 forks source link

Server returned HTTP response code: 400 for URL: http://api.skype.com/users/batch/profiles #11

Closed MrPowerGamerBR closed 8 years ago

MrPowerGamerBR commented 8 years ago
java.io.IOException: Server returned HTTP response code: 400 for URL: http://api.skype.com/users/batch/profiles
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1840)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
    at fr.delthas.skype.WebConnector.sendRequestJson(WebConnector.java:260)
    at fr.delthas.skype.WebConnector.updateContacts(WebConnector.java:115)
    at fr.delthas.skype.WebConnector.start(WebConnector.java:44)
    at fr.delthas.skype.Skype.connect(Skype.java:92)
    at fr.delthas.skype.Skype.connect(Skype.java:68)
    at com.mrpowergamerbr.wow.Testing.main(Testing.java:12)

All contacts are loaded, but all of them are shown as "OFFLINE" and doesn't have any mood.

MrPowerGamerBR commented 8 years ago

Also, this doesn't happen on my bot account (which has 41 contacts) but happens with my main account (with ~730 contacts)

delthas commented 8 years ago

Normally this should be fixed now (1.0.10). The reason was I was sending a request to search for contacts but the request would get too long if you had too many contacts.

MrPowerGamerBR commented 8 years ago

@Delthas fixed in the latest version, thanks!