skype-java-api icon indicating copy to clipboard operation
skype-java-api copied to clipboard

MacOS X: Skype.getAllChats() return chat with id "9901 Internal error"

Open evluhin opened this issue 12 years ago • 2 comments

I'm doing the next: Chat[] allChats = Skype.getAllChats(); for (Chat chat : allChats) { System.out.println("chatid:"+chat.getId()); if(chat.getAllMembers().length>2) {//error And getting the error

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -6 at java.lang.String.substring(String.java:1937) at java.lang.String.substring(String.java:1904) at com.skype.Chat.getUsersProperty(Chat.java:414) at com.skype.Chat.getAllMembers(Chat.java:340) at com.evluhin.skype.publisher.server.HistoryExport.main(HistoryExport.java:18)

Chat ID in this case: "chatid:9901 Internal error".

PS: Skype.getAllChats() got response header: 9901 Internal error.

evluhin avatar Feb 07 '13 21:02 evluhin

I can confirm the bug. Skype version 6.4.0.833 and 6.3.0.602 running on latest OSX.

maciej avatar May 30 '13 11:05 maciej

OK, small update: the getAllChats() call works every ~10 times I start the app.

maciej avatar May 30 '13 11:05 maciej