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 @@ -43,14 +43,7 @@ shared: &shared
"403":
$ref: ../../responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
oneOf:
- $ref: "../../schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError"
- $ref: "../../schemas/common/errors/ActorErrors.yaml#/ActorVersionNotFoundError"
- $ref: "../../schemas/common/errors/EnvVariableErrors.yaml#/EnvironmentVariableNotFoundError"
$ref: ../../responses/NotFound.yaml
"405":
$ref: ../../responses/MethodNotAllowed.yaml
"413":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ shared: &shared
"403":
$ref: ../../responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
$ref: "../../schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError"
$ref: ../../responses/NotFound.yaml
"405":
$ref: ../../responses/MethodNotAllowed.yaml
"413":
Expand Down
9 changes: 9 additions & 0 deletions apify-api/openapi/components/responses/RunTimeout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
description: The HTTP request exceeded the timeout limit
content:
application/json:
schema:
$ref: ../schemas/common/ErrorResponse.yaml
example:
error:
type: run-timeout-exceeded
message: Actor run exceeded the timeout of 300 seconds for this API endpoint
28 changes: 1 addition & 27 deletions apify-api/openapi/components/schemas/common/ErrorResponse.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,4 @@ required:
type: object
properties:
error:
title: ErrorDetail
type: object
properties:
type:
title: ErrorType
type: string
description: Machine-processable error type identifier.
enum:
- actor-memory-limit-exceeded
- actor-not-found
- invalid-input
- method-not-allowed
- permission-denied
- rate-limit-exceeded
- record-not-found
- record-not-unique
- record-or-token-not-found
- request-id-invalid
- request-too-large
- run-failed
- run-timeout-exceeded
- token-not-valid
- unknown-build-tag
- unsupported-content-encoding
message:
type: string
description: Human-readable error message describing what went wrong.
$ref: ErrorDetail.yaml
4 changes: 4 additions & 0 deletions apify-api/openapi/components/schemas/common/ErrorType.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ enum:
- actor-not-found
- invalid-input
- method-not-allowed
- page-not-found
- permission-denied
- rate-limit-exceeded
- record-not-found
Expand All @@ -15,6 +16,9 @@ enum:
- request-too-large
- run-failed
- run-timeout-exceeded
- schedule-actor-not-found
- schedule-actor-task-not-found
- token-not-valid
- unknown-build-tag
- unsupported-content-encoding
- user-not-found
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
ActorNotFoundErrorDetail:
allOf:
- $ref: ../ErrorDetail.yaml
- type: object
properties:
type:
const: actor-not-found

RecordNotFoundErrorDetail:
allOf:
- $ref: ../ErrorDetail.yaml
- type: object
properties:
type:
const: record-not-found

RecordOrTokenNotFoundErrorDetail:
allOf:
- $ref: ../ErrorDetail.yaml
- type: object
properties:
type:
const: record-or-token-not-found

RunFailedErrorDetail:
allOf:
- $ref: ../ErrorDetail.yaml
Expand All @@ -38,46 +14,6 @@ RunTimeoutExceededErrorDetail:
type:
const: run-timeout-exceeded

ActorNotFoundError:
type: object
properties:
error:
$ref: "#/ActorNotFoundErrorDetail"
example:
error:
type: actor-not-found
message: Actor was not found

ActorBuildNotFoundError:
type: object
properties:
error:
$ref: "#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Actor build was not found

RecordOrTokenNotFoundError:
type: object
properties:
error:
$ref: "#/RecordOrTokenNotFoundErrorDetail"
example:
error:
type: record-or-token-not-found
message: Actor was not found or access denied

ActorRunNotFoundError:
type: object
properties:
error:
$ref: "#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Actor run was not found

ActorRunTimeoutExceededError:
type: object
properties:
Expand All @@ -97,13 +33,3 @@ ActorRunFailedError:
error:
type: run-failed
message: "Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)"

ActorVersionNotFoundError:
type: object
properties:
error:
$ref: "#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Actor version was not found

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,56 +6,6 @@ RequestIdInvalidErrorDetail:
type:
const: request-id-invalid

DatasetNotFoundError:
type: object
properties:
error:
$ref: "./ActorErrors.yaml#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Dataset was not found

KeyValueStoreNotFoundError:
type: object
properties:
error:
$ref: "./ActorErrors.yaml#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Key-value Store was not found

RequestQueueNotFoundError:
type: object
properties:
error:
$ref: "./ActorErrors.yaml#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Request Queue was not found

RecordNotFoundError:
type: object
properties:
error:
$ref: "./ActorErrors.yaml#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Record was not found

RequestNotFoundError:
type: object
properties:
error:
$ref: "./ActorErrors.yaml#/RecordNotFoundErrorDetail"
example:
error:
type: record-not-found
message: Request was not found

RequestIdInvalidError:
type: object
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@ get:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
$ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down Expand Up @@ -76,13 +72,7 @@ delete:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
oneOf:
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/RecordOrTokenNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@ post:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
$ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ get:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
$ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ get:
"400":
$ref: ../../components/responses/BadRequest.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
$ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,7 @@ get:
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"408":
description: "Request Timeout: the HTTP request exceeded the 300 second limit"
headers: {}
content:
application/json:
schema:
$ref: ../../components/schemas/common/ErrorResponse.yaml
$ref: ../../components/responses/RunTimeout.yaml
"429":
$ref: ../../components/responses/TooManyRequests.yaml
deprecated: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ get:
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"408":
description: "Request Timeout: the HTTP request exceeded the 300 second limit"
headers: {}
content:
application/json:
schema:
$ref: ../../components/schemas/common/ErrorResponse.yaml
$ref: ../../components/responses/RunTimeout.yaml
"429":
$ref: ../../components/responses/TooManyRequests.yaml
deprecated: false
Expand Down
6 changes: 1 addition & 5 deletions apify-api/openapi/paths/actors/acts@{actorId}@builds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ post:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
$ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,7 @@ get:
"400":
$ref: ../../components/responses/BadRequest.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
oneOf:
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError"
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,7 @@ post:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
oneOf:
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError"
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ get:
"403":
$ref: ../../components/responses/Forbidden.yaml
"404":
description: Not found - the requested resource was not found.
content:
application/json:
schema:
oneOf:
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorNotFoundError"
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
$ref: ../../components/responses/NotFound.yaml
"405":
$ref: ../../components/responses/MethodNotAllowed.yaml
"429":
Expand Down
Loading