AgentDiscovery / Client / exceptions / InternalServerException
InternalServerException¶
- class AgentDiscovery.Client.exceptions.InternalServerException¶
Thrown on an internal defect — a bug or malformed state, not a failed dependency.
⚠️ Deliberately a permanent failure. Repeating a request that failed to serialize will fail identically, so treating a 500 as retryable would spin a poison message through redelivery forever instead of letting it reach a dead-letter queue. Dependency failures that are worth retrying use ServiceUnavailableException and its 503 instead.
Example
try: ... except client.exceptions.InternalServerException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'message': 'string', 'errorCode': 'INVALID_ARGUMENT'|'UNAUTHENTICATED'|'NOT_FOUND'|'RATE_LIMIT_EXCEEDED'|'INTERNAL_ERROR', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Thrown on an internal defect — a bug or malformed state, not a failed dependency.
⚠️ Deliberately a permanent failure. Repeating a request that failed to serialize will fail identically, so treating a 500 as retryable would spin a poison message through redelivery forever instead of letting it reach a dead-letter queue. Dependency failures that are worth retrying use ServiceUnavailableException and its 503 instead.
message (string) –
errorCode (string) –
ARD’s Appendix B code on the ARD surface,
INTERNAL_ERROR.Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.