-
Notifications
You must be signed in to change notification settings - Fork 44
Execution stops abruptly during handshake #16
Comments
Hey @kinetiq Thanks |
No proxy, just running this in a simple setup at home. Code is very simple:
Also! If I go into your code and change this line to synchronous, everything works:
...The handshake succeeds, and I end up getting events and so on! Any idea what this might be? |
Is your console app method async? I have seen these kind of issues before when trying to await something when not in an async context. Could you do something like:
|
You are right, I wasn't in an async context! I was doing this:
But I needed to do this:
Dumb mistake, clearly need to do more async work. I bet people run into this a lot when they're getting started. I actually bounced off of this problem once before, months ago, and I'm just now playing with it again. Anyway! Thanks for the help. |
No problem, glad to have helped |
Hi, and thanks for the great work! I'm trying to get this working in a console app, but I'm having a problem. Execution stops abruptly in RequestExecutor.Execute, on this line:
IRestResponse response = await client.ExecutePostTaskAsync(request);
There's no exception that I can detect... I think the await is just never returning - but it doesn't hang, it exits.
I know this is a restsharp call. The key is correct (works in Margibot). Any idea what to try here?
The text was updated successfully, but these errors were encountered: