SwallowWebExceptions is being changed to true
See original GitHub issueHi (great job on this project!)
I have a Twitter service class that sets ExceptionHandler.SwallowWebExceptions = false;
in its constructor.
One of the methods has the following:
var userCredentials = new TwitterCredentials(Credentials.ConsumerKey, Credentials.ConsumerSecret, accessToken, accessSecret);
…
var result = await Auth.ExecuteOperationWithCredentials(userCredentials, () => TwitterAccessorAsync.ExecutePOSTQuery<IUserDTO>(string.Format(USERS_SHOW, handle)));
Before the call to Auth.ExecuteOperationWithCredentials() I can confirm that SwallowWebExceptions is set to false but immediately after executing it is already set to true and the surrounding generic try catch doesn’t catch anything. (I know the method should be a GET, this is just so I can easily force an exception).
Checking the last exception from ExceptionHandler has the exception I want to catch. I’ve read around the wiki but I can’t seem to find what I am doing wrong. Any help would be appreciated, thanks in advance!
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top GitHub Comments
Thanks for reporting this issue. It looks like a bug that I will fix in the coming release.
Verified on all platforms 😃