Skip to content
This repository has been archived by the owner on Apr 9, 2019. It is now read-only.

fr.delthas.skype.ParseException: Error message received: 911 2 CON 23 #21

Open
MrPowerGamerBR opened this issue Jan 9, 2017 · 31 comments
Assignees

Comments

@MrPowerGamerBR
Copy link

Starting Whistler...
Starting Skype client...
java.io.IOException: fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
        at fr.delthas.skype.Skype.connect(Skype.java:123)
        at fr.delthas.skype.Skype.connect(Skype.java:87)
        at com.mrpowergamerbr.sparklywhistlerbot.Whistler.main(Whistler.java:102)
Caused by: fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
        at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:467)
        at fr.delthas.skype.NotifConnector.lambda$2(NotifConnector.java:495)
        at java.lang.Thread.run(Thread.java:745)

Same code on both machines, on my computer (Windows 10) it works with no issues, however it fails to connect on my dedicated machine (CentOS 6).

@MrPowerGamerBR
Copy link
Author

To be honest I can't reproduce this 100%, it seems it only happens on a specific class (even tho it is the same code to connect), changing the class fixed the issue (for some reason)...

@delthas
Copy link
Owner

delthas commented Jan 10, 2017

Send me the debug log files! :)

@MrPowerGamerBR
Copy link
Author

@delthas cool, just because you asked about the debug log it magically decided to work without any issues.

@MrPowerGamerBR
Copy link
Author

MrPowerGamerBR commented Jan 10, 2017

@delthas maybe not, it seems JavaSkype isn't working.

Here is the skype.log

jan 09, 2017 10:19:41 PM fr.delthas.skype.Skype connect
FINE: Connecting to Skype
jan 09, 2017 10:19:41 PM fr.delthas.skype.Skype reset
FINEST: Resetting the Skype object
jan 09, 2017 10:19:41 PM fr.delthas.skype.NotifConnector generateEPID
FINEST: Generated EPID: c27ffbec-8bd6-1bc2-8da8-99ecf53af205
jan 09, 2017 10:19:41 PM fr.delthas.skype.WebConnector start
FINER: Starting web connector
jan 09, 2017 10:19:41 PM fr.delthas.skype.WebConnector generateTokens
FINEST: Getting skype token
jan 09, 2017 10:19:41 PM fr.delthas.skype.WebConnector sendRequest
FINEST: Sending POST request at https://api.skype.com/login/skypetoken
jan 09, 2017 10:19:41 PM fr.delthas.skype.WebConnector sendRequest
FINE: No token sent for the request at: https://api.skype.com/login/skypetoken
jan 09, 2017 10:19:42 PM fr.delthas.skype.WebConnector sendRequest
FINEST: Sending GET request at https://api.skype.com/users/self/profile
jan 09, 2017 10:19:43 PM fr.delthas.skype.WebConnector sendRequest
FINEST: Sending GET request at https://contacts.skype.com/contacts/v1/users/sparkly.bot/contacts?$filter=authorized eq true and blocked eq false and suggested eq false
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact gutinho13mv
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact matheus.araujo626
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:hiquekonrad_1
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:leo.gustavo.796
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact matheushenrique.pvp.
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact grazielagames
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact luisdurao342
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact slipknotpacks
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact slownerfx
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact yspider.gamer123
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:joy.damasceno
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact karl.kerber1
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:juninho.stocker
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact dancerbuilder21
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:camilyaires67
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact leonezerbinato
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact kaluc-7
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact comicbukkit.suporte
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact vitorhugo1br
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact filiperafa.dc
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:naitxavoso
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact nilzinha.br
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact clebersonxdt123
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact nathan.guedes1
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact privado.cookie
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact sparzinn
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact twcron
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:rrsiqueira
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact weslem_wrs
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:kaioeduardonunes
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact sr-mateus
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact mrpowergamerbr
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:ff1b78c1d8d4c53
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact nicolas.arantes6
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact boladexziinho
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact lowss.private
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact zthiagobr2014
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact uzy157
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact paulo_108901
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact wericminecraftluiz
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:nickninjamaia
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:app7ico3svc.2quejgaig4.
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact um_porquinho
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact sergio200hs.sub
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact joao.victor7061
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact tututizinho1
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:guilhermesou2014
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:jvtmine
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact beehdezeeni
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact dmfcraftbr
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:igoradson123
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:josiasm.carmoquase
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact lork.prv
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact xxananiasxx2012
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact paack.builds
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact jvgamer45
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact andre.mesquita27
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact claudio.augusto98
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact niickfernandes
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:449497785152873
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:yan.spatt
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact matheus.pinheiro123
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact pluginstaus
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:574930235992833
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:douguinhanr
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact aqueleaupakinha
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact caua.henrique25
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact gabrielsamtkd
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact facebook:gcgamerbr
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact luccabcastro
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:junior-sls1
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact mc_dollynho
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact breno.macedo123
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact rafael_grazina
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact jesse.truquijo3
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:lucashacked12
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:victor-martins-silva
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact srplease_
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact cassador_link
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact viciogamesbr.suporte
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact live:ribeirogiovanna129
jan 09, 2017 10:19:44 PM fr.delthas.skype.Skype addContact
FINEST: Adding contact piolebr
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector connect
FINER: Starting notification connector
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector connectTo
FINEST: Connecting to hostname: s.gateway.messenger.live.com port: 443
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: CNT 1 CON 106

<connect><ver>2</ver><agent><os>.</os><osVer>.</osVer><proc>.</proc><lcid>en-us</lcid></agent></connect>
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector connect
FINEST: Ping interval: 120000ms
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector connect
FINER: Waiting for connection
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector processPacket
FINER: Received packet CNT CON
jan 09, 2017 10:19:44 PM fr.delthas.skype.NotifConnector processPacket
FINEST: Recieved packet body: <connect-response><ver>2</ver><qostest>false</qostest><nonce>bce9e964-b9d1-c3f9-82d6-11e01c0fefd4</nonce></connect-response>
jan 09, 2017 10:19:44 PM fr.delthas.skype.UicConnector <clinit>
FINEST: Initializing UIC generation
jan 09, 2017 10:19:45 PM fr.delthas.skype.UicConnector <clinit>
FINER: Overriding AES key length because of limitation
jan 09, 2017 10:19:45 PM fr.delthas.skype.UicConnector getUIC
FINEST: Computing UIC token with username: sparkly.bot and nonce: bce9e964-b9d1-c3f9-82d6-11e01c0fefd4
jan 09, 2017 10:19:45 PM fr.delthas.skype.UicConnector getUIC
FINEST: Sent UIC payload to server
jan 09, 2017 10:19:46 PM fr.delthas.skype.UicConnector getUIC
FINEST: Computed UIC succesfully (uic length:524)
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: ATH 2 CON\USER 570

<user><uic>AAABBAAAAAEMD+omjcrFy6iGzu/U66pENGXuCiJ/Qy7BK4FfjKqR6fSkOfSbR7xa0oxcZr7HKZ1D2aUjZ6Jz9+c26RBoYGz1B+MRUInpxQ/STsyWlh8jBt+B44Vppx8pDqe0QWPkpKh11kToJrdcsk1J0D2Svi1CHIcSdNq7xmtyfwihLfCxFJvQzkpbCyKFunYLIYg9A19M02/axaUUTwLqFHcEJYMd2ZrU6D6Qtqq9HOmtoobUhDVg0VKAv0tR6IsL7Q2h7WMUe3gp3ld6x0QtW3BheLlL0gPdtEz4vFtWwJyTd7/50Qi4XtzT6e6JVz/yAE5hwyfnDAo9cFEUYjbv4FP3yzNLlt9tPi0vJLvUiV5zjBsI2sSn5RLFGdnEU9itSQESvJOUjrLgruuvXO2Ec8wM2YqGE2pnNEZuM/2CTe0NAV+3iC47c38A6QTeL5anxQCzCqLYUCluSkhx58xZJUWWZFXg4ySzkUrl7WzxRm5IoPoaSeoK7vcBBION2L+awlWQukI=</uic><id>sparkly.bot</id></user>
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector processPacket
FINER: Received packet ATH CON
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector processPacket
FINEST: Recieved packet body: <auth-response><new-thread-allowed>false</new-thread-allowed><p2p-migration-allowed>false</p2p-migration-allowed><id>cid-(-336836736196598699)@outlook.com</id></auth-response>
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: BND 3 CON\MSGR 145

<msgr><ver>2</ver><client><name>.</name><ver>.</ver><networks>skype</networks></client><epid>c27ffbec-8bd6-1bc2-8da8-99ecf53af205</epid></msgr>
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector readPacket
FINEST: Set registration: U2lnbmF0dXJlOjI6Mjg6QVFRQUFBQUxrMDdhYlVMYVVyT2ZoaWRHYjREMjtWZXJzaW9uOjY6MToxO0lzc3VlVGltZTo0OjE5OjUyNDc4ODIwNjI0ODc3MTU5NTY7RXAuSWRUeXBlOjc6MToxO0VwLklkOjI6Mzc6Y2lkLSgtMzM2ODM2NzM2MTk2NTk4Njk5KUBvdXRsb29rLmNvbTtFcC5FcGlkOjU6MzY6YzI3ZmZiZWMtOGJkNi0xYmMyLThkYTgtOTllY2Y1M2FmMjA1O0VwLkxvZ2luVGltZTo3OjE6MDtFcC5BdXRoVGltZTo0OjE5OjUyNDc4ODIwNjI0ODY5MzQ3MDA7RXAuQXV0aFR5cGU6NzoxOjg7RXAuRXhwVGltZTo0OjE5OjUyNDc4ODI5MjY0ODY5MzQ3MDA7RXAuUEhfQ3ZlcjoyOjE6MjtFcC5QSF9GdmVyOjI6MToyOw==
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector processPacket
FINER: Received packet XFR CON
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector processPacket
FINEST: Recieved packet body: <xfr><target>co4-s.gateway.messenger.live.com:443</target><flags>G</flags><state>VmVyc2lvbjogMQ0KWGZyQ291bnQ6IDENClhmclNlbnRVVENUaW1lOiA2MzYxOTYwNDQwNjAzNDc3NjMNCklzR2VvWGZyOiB0cnVlDQo=</state><wait>1</wait></xfr>
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector connectTo
FINEST: Connecting to hostname: co4-s.gateway.messenger.live.com port: 443
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: CNT 1 CON 594
Registration: U2lnbmF0dXJlOjI6Mjg6QVFRQUFBQUxrMDdhYlVMYVVyT2ZoaWRHYjREMjtWZXJzaW9uOjY6MToxO0lzc3VlVGltZTo0OjE5OjUyNDc4ODIwNjI0ODc3MTU5NTY7RXAuSWRUeXBlOjc6MToxO0VwLklkOjI6Mzc6Y2lkLSgtMzM2ODM2NzM2MTk2NTk4Njk5KUBvdXRsb29rLmNvbTtFcC5FcGlkOjU6MzY6YzI3ZmZiZWMtOGJkNi0xYmMyLThkYTgtOTllY2Y1M2FmMjA1O0VwLkxvZ2luVGltZTo3OjE6MDtFcC5BdXRoVGltZTo0OjE5OjUyNDc4ODIwNjI0ODY5MzQ3MDA7RXAuQXV0aFR5cGU6NzoxOjg7RXAuRXhwVGltZTo0OjE5OjUyNDc4ODI5MjY0ODY5MzQ3MDA7RXAuUEhfQ3ZlcjoyOjE6MjtFcC5QSF9GdmVyOjI6MToyOw==

<connect><ver>2</ver><agent><os>.</os><osVer>.</osVer><proc>.</proc><lcid>en-us</lcid></agent></connect>
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector processPacket
FINER: Received packet CNT CON
jan 09, 2017 10:19:46 PM fr.delthas.skype.NotifConnector processPacket
FINEST: Recieved packet body: <connect-response><ver>2</ver><qostest>false</qostest><nonce>990e01d8-ba15-0394-5070-ec6405e5fb7c</nonce></connect-response>
jan 09, 2017 10:19:46 PM fr.delthas.skype.UicConnector getUIC
FINEST: Computing UIC token with username: sparkly.bot and nonce: 990e01d8-ba15-0394-5070-ec6405e5fb7c
jan 09, 2017 10:19:47 PM fr.delthas.skype.UicConnector getUIC
FINEST: Sent UIC payload to server
jan 09, 2017 10:19:48 PM fr.delthas.skype.UicConnector getUIC
FINEST: Computed UIC succesfully (uic length:524)
jan 09, 2017 10:19:48 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: ATH 2 CON\USER 1058
Registration: U2lnbmF0dXJlOjI6Mjg6QVFRQUFBQUxrMDdhYlVMYVVyT2ZoaWRHYjREMjtWZXJzaW9uOjY6MToxO0lzc3VlVGltZTo0OjE5OjUyNDc4ODIwNjI0ODc3MTU5NTY7RXAuSWRUeXBlOjc6MToxO0VwLklkOjI6Mzc6Y2lkLSgtMzM2ODM2NzM2MTk2NTk4Njk5KUBvdXRsb29rLmNvbTtFcC5FcGlkOjU6MzY6YzI3ZmZiZWMtOGJkNi0xYmMyLThkYTgtOTllY2Y1M2FmMjA1O0VwLkxvZ2luVGltZTo3OjE6MDtFcC5BdXRoVGltZTo0OjE5OjUyNDc4ODIwNjI0ODY5MzQ3MDA7RXAuQXV0aFR5cGU6NzoxOjg7RXAuRXhwVGltZTo0OjE5OjUyNDc4ODI5MjY0ODY5MzQ3MDA7RXAuUEhfQ3ZlcjoyOjE6MjtFcC5QSF9GdmVyOjI6MToyOw==

<user><uic>AAABBAAAAAGZxAzwAHp9QVH/Rf5LRFXPkWy0vDuUzeRuSCvaTibMOisyoLT1OeJeoSwO9mYEi/i0DEXVAYtzBxt95/TDKNWF8/7mDTZ+xfnqn6QhGMa5hxepLR2hQmNmWc11RSFlydEFXsxJDjdLML3vwFZbT/TxDWeGFmcCok/M3pdQObVvDyZbay+ymXzkwIz5bf4kXlYqXZP9UHWfcF5zKZEMoxW1SqUYbJTKVs+2pJ9AcOgGUiYRIiVf1JnBd8OkTmSemRJIKukstFjJo9m7ni/a/c1xyitOb9ndB7KfaL8GFNF/tqsj2c2JKUF9vidUrLlfsvgjucJLvc2zJso2enStlBrCu5G5Y94+TOEKku9HLeH1Y7+jcXuta26WuSfWYvq/I8Vn/jSVS/tMgP1UOnrwIzaX1+MdbZCpLetgfLGXMr3ZLVfiueWAX2sBIkR80YYcA44Ro+ZDlWoigYlGZai3/IyqQHKNpJB3x3mKsr5xP6YyO7fnALikGIOFrWrb63sW7pQ=</uic><id>sparkly.bot</id></user>
jan 09, 2017 10:19:48 PM fr.delthas.skype.NotifConnector readPacket
SEVERE: 
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
	at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:467)
	at fr.delthas.skype.NotifConnector.lambda$2(NotifConnector.java:495)
	at java.lang.Thread.run(Thread.java:745)

jan 09, 2017 10:19:48 PM fr.delthas.skype.NotifConnector lambda$2
SEVERE: Error while reading packet
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
	at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:467)
	at fr.delthas.skype.NotifConnector.lambda$2(NotifConnector.java:495)
	at java.lang.Thread.run(Thread.java:745)

jan 09, 2017 10:19:48 PM fr.delthas.skype.Skype error
SEVERE: Error thrown
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
	at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:467)
	at fr.delthas.skype.NotifConnector.lambda$2(NotifConnector.java:495)
	at java.lang.Thread.run(Thread.java:745)

jan 09, 2017 10:19:48 PM fr.delthas.skype.Skype error
SEVERE: No error listener set!!!
jan 09, 2017 10:21:48 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: PNG 3 CON 490
Registration: U2lnbmF0dXJlOjI6Mjg6QVFRQUFBQUxrMDdhYlVMYVVyT2ZoaWRHYjREMjtWZXJzaW9uOjY6MToxO0lzc3VlVGltZTo0OjE5OjUyNDc4ODIwNjI0ODc3MTU5NTY7RXAuSWRUeXBlOjc6MToxO0VwLklkOjI6Mzc6Y2lkLSgtMzM2ODM2NzM2MTk2NTk4Njk5KUBvdXRsb29rLmNvbTtFcC5FcGlkOjU6MzY6YzI3ZmZiZWMtOGJkNi0xYmMyLThkYTgtOTllY2Y1M2FmMjA1O0VwLkxvZ2luVGltZTo3OjE6MDtFcC5BdXRoVGltZTo0OjE5OjUyNDc4ODIwNjI0ODY5MzQ3MDA7RXAuQXV0aFR5cGU6NzoxOjg7RXAuRXhwVGltZTo0OjE5OjUyNDc4ODI5MjY0ODY5MzQ3MDA7RXAuUEhfQ3ZlcjoyOjE6MjtFcC5QSF9GdmVyOjI6MToyOw==


jan 09, 2017 10:21:48 PM fr.delthas.skype.NotifConnector sendPacket
FINEST: Sent packet: PUT 4 MSGR\ACTIVEENDPOINT 545
Registration: U2lnbmF0dXJlOjI6Mjg6QVFRQUFBQUxrMDdhYlVMYVVyT2ZoaWRHYjREMjtWZXJzaW9uOjY6MToxO0lzc3VlVGltZTo0OjE5OjUyNDc4ODIwNjI0ODc3MTU5NTY7RXAuSWRUeXBlOjc6MToxO0VwLklkOjI6Mzc6Y2lkLSgtMzM2ODM2NzM2MTk2NTk4Njk5KUBvdXRsb29rLmNvbTtFcC5FcGlkOjU6MzY6YzI3ZmZiZWMtOGJkNi0xYmMyLThkYTgtOTllY2Y1M2FmMjA1O0VwLkxvZ2luVGltZTo3OjE6MDtFcC5BdXRoVGltZTo0OjE5OjUyNDc4ODIwNjI0ODY5MzQ3MDA7RXAuQXV0aFR5cGU6NzoxOjg7RXAuRXhwVGltZTo0OjE5OjUyNDc4ODI5MjY0ODY5MzQ3MDA7RXAuUEhfQ3ZlcjoyOjE6MjtFcC5QSF9GdmVyOjI6MToyOw==

<activeendpoint><timeout>135</timeout></activeendpoint>

EDIT: Yeah, it isn't working, I forgot to add skype.setErrorListener(Exception::printStackTrace);, after adding the exception is thrown in the console.

@MrPowerGamerBR
Copy link
Author

MrPowerGamerBR commented Jan 10, 2017

@delthas this issue is really strange, here is another log
https://gist.github.com/MrPowerGamerBR/24a8f42f04294689c9a17cdd37320d8b

Why it wouldn't work on my dedicated machine? (dedicated machine from OVH), it seems it fails to authenticate, but the user's usernames ARE printed in the console, so it is logging successfully.

However the bot isn't online and trying to interact with it (addUserMessageListener) doesn't work.

@MrPowerGamerBR
Copy link
Author

@delthas dude, I'm facepalming so hard right now.

Like, I think I'm retarded...

...I was compiling with my local JavaSkype copy... after changing the pom.xml to compile with the latest version it magically worked...

So... yeah... I think I can close this.

@delthas
Copy link
Owner

delthas commented Jan 10, 2017

Hahaha I'm so glad there wasn't a real bug because I had absolutely no idea how to fix it... Thanks for opening these issues though, it helps me fix the last few bugs of this library! It really helps.

@MrPowerGamerBR
Copy link
Author

MrPowerGamerBR commented Jan 10, 2017

@delthas uhhh... now I successfully reproduced it on my local machine with my main account (my bot now works on my dedicated and on my local machine for SOME REASON, so now I don't really care about this issue because at least my bot account works)

An error occured while connecting...
java.io.IOException: fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
	at fr.delthas.skype.Skype.connect(Skype.java:123)
	at fr.delthas.skype.Skype.connect(Skype.java:87)
	at com.mrpowergamerbr.sparklywhistlerbot.utils.DebugSkype.main(DebugSkype.java:25)
Caused by: fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
	at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:484)
	at fr.delthas.skype.NotifConnector.lambda$connect$4(NotifConnector.java:512)
	at java.lang.Thread.run(Thread.java:745)

Maybe something related to the number of contacts?

And now I'm 100% sure that I'm running the latest version (even tried getting the latest version from Jitpack to be sure)

@MrPowerGamerBR MrPowerGamerBR changed the title JavaSkype works on local machine, but doesn't work on my dedicated server. fr.delthas.skype.ParseException: Error message received: 911 2 CON 23 Jan 10, 2017
@matthewbachelder
Copy link

I am actually getting this same error. Did anyone ever find anything to resolve?

@delthas
Copy link
Owner

delthas commented Mar 20, 2017

Hello! Sorry for the long wait. I think I have fixed the issue in the latest version, 1.0.20. Could you check and tell me if it works/reopen the issue if it doesn't? @matthewbachelder @MrPowerGamerBR

Thanks.

@MrPowerGamerBR
Copy link
Author

@delthas I'm not using Skype anymore (migrated to Discord) so... yeah, I can't test this issue, sorry!

@matthewbachelder
Copy link

I will try and let you know how it goes

@delthas
Copy link
Owner

delthas commented Mar 20, 2017

oh nice @MrPowerGamerBR you finally made the move to discord! congrats 😃

@MrPowerGamerBR
Copy link
Author

@delthas yeah, I got fed up with Skype hanging randomly when opening a huge group chat... Also because Discord allows you to create very powerful bots, with Skype... Not so much because you are kinda limited with what you can do.

@matthewbachelder
Copy link

@delthas I was able to test. It is working

@delthas
Copy link
Owner

delthas commented Mar 20, 2017 via email

@awkaw
Copy link

awkaw commented Mar 22, 2017

Error 911 2 CON 23 is repeated. Not always. Sometimes. OS Debian 8

`Mar 22, 2017 12:28:52 PM fr.delthas.skype.NotifConnector readPacket
SEVERE:
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:484)
at fr.delthas.skype.NotifConnector.lambda$connect$4(NotifConnector.java:512)
at java.lang.Thread.run(Thread.java:745)

Mar 22, 2017 12:28:52 PM fr.delthas.skype.NotifConnector lambda$connect$4
SEVERE: Error while reading packet
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:484)
at fr.delthas.skype.NotifConnector.lambda$connect$4(NotifConnector.java:512)
at java.lang.Thread.run(Thread.java:745)

Mar 22, 2017 12:28:52 PM fr.delthas.skype.Skype error
SEVERE: Error thrown
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:484)
at fr.delthas.skype.NotifConnector.lambda$connect$4(NotifConnector.java:512)
at java.lang.Thread.run(Thread.java:745)

Mar 22, 2017 12:28:52 PM fr.delthas.skype.Skype error
SEVERE: No error listener set!!!`

Windows 7 OS - all good!

@awkaw
Copy link

awkaw commented May 19, 2017

Error 911 2 CON 23 is repeated. OS Debian 8 x64.
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

Version JavaSkype 1.0.21

`Connect skype...
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
java.io.IOException: fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
at fr.delthas.skype.Skype.connect(Skype.java:132)
at fr.delthas.skype.Skype.connect(Skype.java:97)
at fr.delthas.skype.Main.connectSkype(Main.java:59)
at fr.delthas.skype.Main.main(Main.java:466)
Caused by: fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:569)
at fr.delthas.skype.NotifConnector.lambda$connect$4(NotifConnector.java:597)
at java.lang.Thread.run(Thread.java:748)`

Windows 7 OS - all good!

@awkaw
Copy link

awkaw commented May 19, 2017

The most interesting. Under one login all ok. Under another login error.

@awkaw
Copy link

awkaw commented May 19, 2017

Sometimes it happens

WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket
WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket
WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket
WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket
WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket
WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket
WARNING: EOF reached in stream
May 19, 2017 2:32:09 PM fr.delthas.skype.NotifConnector readPacket

@awkaw
Copy link

awkaw commented May 19, 2017

May 19, 2017 12:34:48 PM fr.delthas.skype.Skype error
SEVERE: Error thrown
fr.delthas.skype.ParseException: Error message received:
911 2 CON 23

Authentication failed
at fr.delthas.skype.NotifConnector.readPacket(NotifConnector.java:569)
at fr.delthas.skype.NotifConnector.lambda$connect$4(NotifConnector.java:597)
at java.lang.Thread.run(Unknown Source)

May 19, 2017 12:34:48 PM fr.delthas.skype.Skype error
SEVERE: No error listener set!!!

@awkaw
Copy link

awkaw commented May 19, 2017

For Debian 8 x64 this solution was found in file NotifConnector.java

sendPacket("CNT", "CON", "<connect><ver>2</ver><agent><os>winnt</os><osVer>5.2</osVer><proc>x86</proc><lcid>en-us</lcid><country>us</country></agent></connect>");

delthas added a commit that referenced this issue May 20, 2017
@delthas
Copy link
Owner

delthas commented May 20, 2017

@awkaw : I replaced the CNT CON string with the one you used and pushed it in 1.0.21. Does it work?

@awkaw
Copy link

awkaw commented Jul 21, 2017

Error 911 2 CON 23 still sometimes occurs. I do not know how to fight it yet.

@awkaw
Copy link

awkaw commented Jul 21, 2017

The problem is in restricting Microsoft to use Skype in Linux. The latest working version of Skype for Linux is 4.2. I do not know how to adapt it to Linux.

@afish
Copy link

afish commented Aug 9, 2017

I am getting the same error on Windows Server 2012 R2 machine using 1.0.21. It was working flawlessly for a few months but now I am getting it all the time. I am using it with only one skype account linked with Microsoft profile.

Also bear in mind that I am using this library as a C# port made with IKVM. I wouldn't expect it to mess with the skype protocol logic, but of course there is a chance.

Please let me know if you need any logs.

@delthas
Copy link
Owner

delthas commented Aug 10, 2017

Hello @afish and thanks for using the library.

I haven't added support for Microsoft accounts yet so this is maybe why it doesn't work. Do you remember doing anything in particular when it stopped working, like linking to your Microsoft account?

Anyway, I could try and find the bug more easily if you send me the debug logs, by using Skype.setDebug(path); and gist-ing the generated log file or something.

@delthas delthas reopened this Aug 10, 2017
@delthas delthas self-assigned this Aug 10, 2017
@afish
Copy link

afish commented Aug 10, 2017

Hi!
Please find the log here: https://gist.github.com/afish/f1c8e6a33af4b591ee9cbdf2d68529cd

I linked my account with Microsoft profile many months ago and it worked correctly with your library since then. I have two factor authentication enabled and in the library I use application password generated on the website, maybe this changes something, but I am sure the password is correct (despite the fact that log suggests something else) because it works fine in other application. I changed nothing recently.

In my own logs I can see that this error was logged from time to time for the last few months, e.g., once a week. However, last week (03.08.2017) it started occurring very often, I can see that the application was unable to log in to skype for a few hours, but later the error disappeared for a few hours and then occurred again on 04.08.2017. Few hours later it came back to normal for another 5 days but it stopped working yesterday. Right now I am unable to log in at all using your library. Maybe this will simply go away on its own but for the last ~15 hours I can see the error constantly.

@delthas
Copy link
Owner

delthas commented Aug 10, 2017

Okay, I'll try to delve into the logs and see how I can fix it. Meanwhile, if at some point the login actually works, please send me the logs of the working run, so that I can compare both logs. So you may want to use Skype.setDebug(path); every time to be able to have the logs in case it ends up working (at least) once.

@afish
Copy link

afish commented Aug 10, 2017

There also might be another issue, I don't know if this is directly related to te 911 2 CON 23. See the gist:
https://gist.github.com/afish/9f6b22937d21f912da6626415b5173b4

It looks like Skype gets stuck and dumps thousands of warnings to log file. The same environment, namely, Windows Server 2012 R2 and .NET application using version 1.0.21 via IKVM.

@apovn
Copy link

apovn commented Jun 13, 2018

Hi all

I also have the same problem.
The bug came from this code
NotifConnector.java:91
` // TODO should we set daemon?
// receiverThread.setDaemon(true);

    pingThread = new Thread(() -> {
        while (!Thread.interrupted() && !disconnectRequested) {
            if (System.nanoTime() - lastMessageSentTime > pingInterval) {
                try {
                    sendPacket("PNG", "CON", "");
                    sendPacket("PUT", "MSGR\\ACTIVEENDPOINT", "<activeendpoint><timeout>135</timeout></activeendpoint>");
                } catch (IOException e) {
                    logger.log(Level.SEVERE, "Error while sending ping", e);
                    skype.error(e);
                    break;
                }
            }
            try {
                Thread.sleep(pingInterval / 1000000);
            } catch (InterruptedException ignore) {
                return;
            }
        }
    }, "Skype-Ping-Thread");
    pingThread.setDaemon(true);`

and I got error like this:
`SEVERE: Error while trying to send message: PNG 11 CON 466
Registration: U2lnbmF0dXJlOjI6Mjg6QVFRQUFBRHlaNlByQ1JTd0MyMERXcVRNL2tUaDtWZXJzaW9uOjY6MToxO0lzc3VlVGltZTo0OjE5OjUyNDgzMzAyOTY3OTkyMTM5MDM7RXAuSWRUeXBlOjc6MTo4O0VwLklkOjI6MjA6bGl2ZTp0cmktdHJhbi1uaXRlY287RXAuRXBpZDo1OjM2OjhhMDhjZmNmLWIwMGQtMGZlMi1kODE5LWIzZGRiOTczZjYwMjtFcC5Mb2dpblRpbWU6NzoxOjA7RXAuQXV0aFRpbWU6NDoxOTo1MjQ4MzMwMjk2Nzg5NjUxNTk2O0VwLkF1dGhUeXBlOjc6MTo4O0VwLkV4cFRpbWU6NDoxOTo1MjQ4MzMxMTYwNzg5NjUxNTk2O0VwLlBIX0N2ZXI6MjoxOjI7RXAuUEhfRnZlcjoyOjE6Mjs=

java.net.SocketException: Connection closed by remote host
at sun.security.ssl.SSLSocketImpl.checkWrite(SSLSocketImpl.java:1555)
at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:71)
at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
at java.io.BufferedWriter.flush(BufferedWriter.java:254)`

@delthas Could you tell me the purpose of this code: sendPacket("PNG", "CON", "");
or how to fix above issue ?

Thank a lot.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants