-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu problem (Linux) #9
Comments
Api is tested for work on Mac OSX. But someone reported that he has timeouts. We need to collect more information. |
I had tested on Windows and it works right. The problem is in linux (Ubuntu). Always returns a timeOutExceptions. |
I also had timeout for the telegram-bot (I've only tested on linux/gentoo so far with jvm 1.6.0_45) so perhaps it's a duplicate bug of this one : telegram-s/telegram-bot#2 |
I've been researching the TimeoutException bug for a while now. It appears only on Linux (Debian tested), and not on Windows/mac/freebsd. |
thanks Floens for your feedback. I've enabled logging to see where the timeout occurred. I need to look at the mt protocol to get more informations I think :) ''' |
Well, The only new thing that I have discovered is that the API works in Solaris too. |
I've tried Oracle 1.7 or sun 1.6 but same timeout issue |
This seems to fix it:
It's because java by default uses /dev/random which blocks. |
You are right Floens, this solves the problem!! |
thanks for the fix 👍 I had to change /etc/java-6-openjdk/security/java.security and modify this line securerandom.source=file:/dev/./urandom |
I m getting timeout while rpccall for importing contacts, in windows 64bit , jdk 1.7. |
It started working for me after I updated Server IP Address in the MemoryStateAPI class, as shown below - public void start(boolean isTest) {
connections = new HashMap<>();
connections.put(1, new ConnectionInfo[]{
new ConnectionInfo(1, 0, isTest ? "149.154.175.10" : "149.154.175.50", 443)
});
} |
Can you please send me compiled working code to my email [email protected]? I shall be grateful to you |
Hi all, |
Hi, I am facing this same issue when sending the auth.checkPhone request. However while sending the auth.sendCode request I was able to solve this problem by adding the java parameters as Floens mentioned. Anybody knows what's happening? I am using CentOs 6.5 with eclipse luna and java 8 |
|
Hi, Thanks for the reply. But as I mentioned, I have already applied the runtime parameters that you have suggested and because of that the auth.sendCode was successfully made. But this new request auth.checkphone seems to fail with a TimedOutException. Thanks |
Ah. Well try to see with the debugger where the thread hangs (pause the jvm). This library is very old so you might want to look for another telegram solution. |
It seems that this is the only JAVA API library for working with the telegram API. I have recompiled this to work with Layer 18 API and was able to run the sendCode request. Were you able to get this done when you were working on it? Is there any other library that you found helpful? |
This answer explains the issue if it is not related to /random |
Thanks for the link. I'm not sure what happened but the error disappeared by itself. Everything is working now. |
I am continuing to have issues with this library. The author has moved on, so it is understandable. But I stumbled across this library which is recently released: https://github.com/badoualy/kotlogram |
I think there is a problem with the JVM in linux. When I make a to any method of the API (TLRequestHelpGetConfig for example) I always get a timeOutException. But when I Try it on windows or mac, I get te correct answer. Does anyone know if there is any differences between de JVM??
The text was updated successfully, but these errors were encountered: