ruyaoyao / LineAPI4J

LineAPI for Java.
MIT License
31 stars 17 forks source link

can't login #2

Closed ilhamiarie closed 8 years ago

ilhamiarie commented 9 years ago

Hello, thank you for lib sorry if there is an incorrect spelling. I'm not too fluent use of the English language.

I've previously used your lib. and there is no problem. and very stable. but since the 26th of August, I can not login. and I found the exception. as shown below.

Aug 27, 2015 10:40:16 AM ilhamiarie.app.IlhamiArieLineApiImpl wasLogin SEVERE: null org.apache.thrift.transport.TTransportException: java.net.SocketException: Unexpected end of file from server at org.apache.thrift.transport.THttpClient.flush (THttpClient.java:356) Trying relogin ... please wait at org.apache.thrift.TServiceClient.sendBase (TServiceClient.java:65) at line.thrift.TalkService $ Client.send_loginWithIdentityCredentialForCertificate (TalkService.java:3314) at line.thrift.TalkService $ Client.loginWithIdentityCredentialForCertificate (TalkService.java:3300) at io.cslinmiso.line.api.impl.LineApiImpl.login (LineApiImpl.java:204)

is there any solution to this problem?

ruyaoyao commented 9 years ago

Hi ilhamiarie,

I've tried and I am sure I can log in. Would you please pull the latest code and try to login the same way as in App.java

Thanks.

ilhamiarie commented 9 years ago

hi, cslinmiso thanks for the response after I update lib you yesterday. I've not come across a problem anymore to login. Then I tried to run the method "LongPool", on LineClient class, I found an exception, as shown below.

Sept 4, 2015 4:59:21 PM io.cslinmiso.line.model.LineClient longPoll SEVERE: null org.apache.thrift.transport.TTransportException: HTTP Response code: 410 at org.apache.thrift.transport.THttpClient.flush (THttpClient.java:349) at org.apache.thrift.TServiceClient.sendBase (TServiceClient.java:65) at line.thrift.TalkService $ Client.send_fetchOperations (TalkService.java:1413) at line.thrift.TalkService $ Client.fetchOperations (TalkService.java:1404) at io.cslinmiso.line.api.impl.LineApiImpl.fetchOsperations (LineApiImpl.java:479) at io.cslinmiso.line.model.LineClient.longPoll (LineClient.java:572) at io.cslinmiso.line.model.LineClient.longPoll (LineClient.java:550)

for the others, I think everything is going well.

ruyaoyao commented 9 years ago

I will have to look into it while I am free. Thanks.