You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to RestSharp
I'm setting a timeout on the RestClient but it does not seem to be
timeout out. Rather it waits indefinitely. Do you see anything wrong
with this code? I checked the RestSharp codebase and it seems that
Timeout is being sent down the stack just fine. So I'm kind of at a
loss here.
protected void ExecuteAsync<T>(RestRequest request,
Action<RestResponse<T>> callback) where T : new()
{
var client = new RestClient();
client.Timeout = 10;
client.BaseUrl = DataConfiguration.HostingBaseUrl;
client.ExecuteAsync<T> (request, callback);
}
John Sheehan
unread,
Mar 2, 2011, 3:28:19 AM3/2/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rest...@googlegroups.com
"The Timeout property has no effect on asynchronous requests made with the BeginGetResponse or BeginGetRequestStream method...In the case of asynchronous requests, the client application implements its own time-out mechanism. Refer to the example in the BeginGetResponse method."
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rest...@googlegroups.com
sorry i'm running behind guys. i'll try to get to it soon, but it's sxsw time and it's very busy.
Andrew Young
unread,
Mar 11, 2011, 4:19:10 PM3/11/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rest...@googlegroups.com
So it seems like I got BeginGetResponse to time out properly. But BeginGetRequestStream is not. The code is implemented pretty much exactly the same in either case. Not sure what the deal is.