Skip to content

Commit 9eb56a9

Browse files
committed
fix #287
1 parent 6106c3a commit 9eb56a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Source/FikaAmazonAPI/Services/RequestService.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ protected void CreateAuthorizedPagedRequest(AmazonFilter filter, string url, Res
104104
RestHeader();
105105
AddAccessToken();
106106
Request = await TokenGeneration.SignWithSTSKeysAndSecurityTokenAsync(Request, RequestClient.BaseUrl.Host, AmazonCredential);
107+
108+
RequestClient.Timeout = 60 * 1000;
109+
RequestClient.ThrowOnAnyError = true;
107110
var response = await RequestClient.ExecuteAsync<T>(Request);
108111
SaveLastRequestHeader(response.Headers);
109112
SleepForRateLimit(response.Headers, rateLimitType);

0 commit comments

Comments
 (0)