question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to ExecuteAsync in the latest version?

See original GitHub issue

My os: linux. I update the tdlib to the latest version and use yout latest version but it hangs on ExecuteAsync and dont return received result, take a look at log:

11/3/19 12:47:07 PM - enabling tor proxy
[ 3][t 4][1572772627.691557407][Td.cpp:3548][#1][!Td][&td_requests]	Receive request 3: addProxy {
  server = "127.0.0.1"
  port = 9050
  enable = true
  type = proxyTypeSocks5 {
    username = ""
    password = ""
  }
}
[ 3][t 4][1572772627.691611528][Td.cpp:4672][#1][!Td][&td_requests]	Sending result for request 3: proxy {
  id = 2
  server = "127.0.0.1"
  port = 9050
  last_used_date = 1572772581
  is_enabled = true
  type = proxyTypeSocks5 {
    username = ""
    password = ""
  }
}

The log shows that the result sent, but the tdjsonclient does not receive it and ExecuteAsync hang forever.

PS: Everything was fine with 1.3 version.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

1reaction
x2boolcommented, Nov 30, 2019

Thanks for patiently waiting for 1.5. I just updated this repo. If something does not work for you feel free to open another issue.

0reactions
zotanmewcommented, Dec 4, 2019

this is still happening for me with 1.5.1 .dylib on macOS 10.15.1, just gets stuck after async execution.

client.ExecuteAsync(new TdApi.GetUser
            {
                UserId = uid
            }).Result;

@x2bool

Read more comments on GitHub >

github_iconTop Results From Across the Web

ExecuteAsync() causing hard crash with no exception
Based on RestClient's documentation, ExecuteAsync does not throw an exception, but instead populates response.ErrorException and response.
Read more >
When awaiting an async method from ExecuteAsync which ...
A background service throwing an error during ExecuteAsync doesn't cause the app to shut down. That's intentional behavior.
Read more >
NET 6 breaking change: Exception handling in hosting - .NET
NET versions, when an exception is thrown from a BackgroundService.ExecuteAsync(CancellationToken) override, the host continues to run, ...
Read more >
How should a service exit to prevent an error?
In a Windows service, when you stop the service, a cancellation token is generated, and the service's ExecuteAsync method will be called with ......
Read more >
DataStax Java Driver - Asynchronous programming
executeAsync returns a dedicated AsyncResultSet that only iterates the current page, the next pages must be fetched explicitly. This greatly simplifies ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found