GetResponseBodyAsync not working (from DevtoolsClient's Network.ResponseReceived callback) #4767
Unanswered
DevCyber23
asked this question in
Q&A
Replies: 1 comment
-
The API must be called in an asynchronous fashion.
Highly unlikely. You appear to be blocking the thread used to process responses. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I'm trying to use GetResponseBodyAsync (from DevtoolsClient's Network.ResponseReceived callback) to get the full body of a HTTP response, however this API never returns. I call it in a synchronous way, like this:
var testBody = devToolsClient.Network.GetResponseBodyAsync(args.RequestId).Result;
However this never returns. I was expecting the function to return the body data (even if not immediately), but it never works for me. Is there a specific way I should call this API? Or maybe a setup I need to do when instantiating the Devtools?If not, is this a bug? Can it be fixed?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions