Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,43 @@ partial void ProcessActorBuildGetResponseContent(
h => h.Key,
h => h.Value));
}
// The HTTP request exceeded the timeout limit
if ((int)__response.StatusCode == 408)
{
string? __content_408 = null;
global::System.Exception? __exception_408 = null;
global::Apify.ErrorResponse? __value_408 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
else
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_408 = __ex;
}


throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
statusCode: __response.StatusCode,
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_408,
responseBody: __content_408,
responseObject: __value_408,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
// Too many requests - rate limit exceeded.
if ((int)__response.StatusCode == 429)
{
Expand Down
37 changes: 37 additions & 0 deletions src/libs/Apify/Generated/Apify.ActorRunsClient.ActorRunGet.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,43 @@ partial void ProcessActorRunGetResponseContent(
h => h.Key,
h => h.Value));
}
// The HTTP request exceeded the timeout limit
if ((int)__response.StatusCode == 408)
{
string? __content_408 = null;
global::System.Exception? __exception_408 = null;
global::Apify.ErrorResponse? __value_408 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
else
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_408 = __ex;
}


throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
statusCode: __response.StatusCode,
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_408,
responseBody: __content_408,
responseObject: __value_408,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
// Too many requests - rate limit exceeded.
if ((int)__response.StatusCode == 429)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,43 @@ partial void ProcessActBuildDefaultGetResponseContent(
h => h.Key,
h => h.Value));
}
// The HTTP request exceeded the timeout limit
if ((int)__response.StatusCode == 408)
{
string? __content_408 = null;
global::System.Exception? __exception_408 = null;
global::Apify.ErrorResponse? __value_408 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
else
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_408 = __ex;
}


throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
statusCode: __response.StatusCode,
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_408,
responseBody: __content_408,
responseObject: __value_408,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
// Too many requests - rate limit exceeded.
if ((int)__response.StatusCode == 429)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,43 @@ partial void ProcessActBuildsPostResponseContent(
h => h.Key,
h => h.Value));
}
// The HTTP request exceeded the timeout limit
if ((int)__response.StatusCode == 408)
{
string? __content_408 = null;
global::System.Exception? __exception_408 = null;
global::Apify.ErrorResponse? __value_408 = null;
try
{
if (__effectiveReadResponseAsString)
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
else
{
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);

__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
{
__exception_408 = __ex;
}


throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
statusCode: __response.StatusCode,
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
innerException: __exception_408,
responseBody: __content_408,
responseObject: __value_408,
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
h => h.Value));
}
// Too many requests - rate limit exceeded.
if ((int)__response.StatusCode == 429)
{
Expand Down
Loading