-
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
TimeOut Exception while doRpcCall-Importing contacts #30
Comments
See this solution for linux #9 |
Hi ...thank u very much for the reference...but i am getting these
|
Do you switch DC after code confirmation? |
no |
@alexkvak , I am using the same DC. Not able to get the list of DCs available.Also,can u share me some idea that how you are transforming the methods(like help.getConfig#c4f9186b) specified in telegram's website to Java or any other programming language |
def switchToNearestDc() = {
val dcInfo = api.doRpcCallNonAuth(new TLRequestHelpGetNearestDc)
api.switchToDc(dcInfo.getNearestDc)
} |
Hi Alex, Thanks for your time. Test Code:: TLNearestDc neardc=api.doRpcCallNonAuth( new TLRequestHelpGetNearestDc()); Log:: ActorSystem.java--(....where exception is thrown) public void close() { for (int i = 0; i < holdersCount; i++) { if On Wed, Dec 3, 2014 at 3:35 PM, Alex Kvak notifications@github.com wrote:
|
Do you do TLRequestHelpGetConfig request? |
Yes I have tried this to get the DC Options. TLConfig TLCCC=api.doRpcCallNonAuth( new TLRequestHelpGetConfig()); I tried switching DC with and without using the above code. On Thu, Dec 4, 2014 at 1:32 AM, Alex Kvak notifications@github.com wrote:
|
Tell me, what you also do before this code? I switch DC after this code.. |
can you wrap your code as source code? See markdown documentation |
@alexkvak ,Code in required format
|
My app does so: TLConfig config = api.doRpcCallNonAuth(new TLRequestHelpGetConfig());
state.updateSettings(config); then switchToNearestDc(); then // TLRequestAuthSendCode |
Tried this way also..Still getting same NullPointerException Exception Code Changes::
TLConfig config = api.doRpcCallNonAuth(new TLRequestHelpGetConfig()); On Thu, Dec 4, 2014 at 4:44 PM, Alex Kvak notifications@github.com wrote:
|
so the problem is in you nearest dc. What is it address? |
My nearest server is dc2 in (india)[will share u the ip]..
|
show me the updateSetting method code |
Specified entire API Storage class (implement AbsApiState) below
|
Did you see, how it's implemented in Telegram for Android? Maybe here is some mistake |
Hi I had the same problem and I fix updating the JDK of my Linux and changing the java.security file |
Am facing this issue in windows.. On Sun, Dec 21, 2014 at 1:21 AM, Victor de la Cruz <notifications@github.com
|
Hello, I want to use api telegram for android and I want to know about what operating system works correctly because I'm using windows 7 64 bit and eclipse and timeout exception for rpc call occurs. Help please! :( |
I have got the same problem on windows 7 64bit. the timeout is only occur for RPC calls. and if I add "securerandom.source=file:/dev/./urandom" to java.security. the program even not able to connect to the DC . so right now the step is :
|
I had to change ip address for telegram server in ApiState |
Exactly...
|
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)
});
} |
How can i get all contact list for my telegram application? |
Munish,Pls share your working code. Regards On Sat, Aug 8, 2015 at 1:21 AM, mohammad ghasemi notifications@github.com
|
I am trying to add and import a contact for sending message.but i am getting time out exception every time.
Correct me if something wrong.
Code:
TLInputContact tlic=new TLInputContact(1, PhNo, Fname, Lname);
TLVector contacts = new TLVector<>();
contacts.add(tlic);
TLRequestContactsImportContacts importContacts = new TLRequestContactsImportContacts(contacts, true);
TLImportedContacts importedContacts = api.doRpcCall(importContacts);
TLAbsUser recipient=importedContacts.getUsers().get(0);
TLInputPeerContact peer = new TLInputPeerContact(recipient.getId());
TLRequestMessagesSendMessage sendMessageRequest = new TLRequestMessagesSendMessage(peer, "Test", rnd.nextInt());
TLAbsSentMessage sentMessage = api.doRpcCall(sendMessageRequest);
Log::
TelegramApi#1001:Timeout Iteration
ActorDispatcher:Dispatching action: schedule for scheduller
ActorDispatcher:Dispatching action: schedule for scheduller
TelegramApi#1001:Timeout Iteration
TelegramApi#1001:RPC #3: Timeout (15001 ms)
Exception in thread "main" org.telegram.api.engine.TimeoutException
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:364)
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:309)
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:400)
at org.telegram.api.engine.TelegramApi.doRpcCall(TelegramApi.java:396)
at testmsg.Testmsg.main(Testmsg.java:151)
TelegramApi#1001:Timeout Iteration
The text was updated successfully, but these errors were encountered: