`ApiException: (410) Reason: Gone ... "too old resource version: 123456 (789012)"` in a watch loop.
AdvancedTroubleshootingboto3, HTTP & API errors
Answer
Likely causes → The watch resumed from a resourceVersion older than the API server's retained history (etcd compaction).
Diagnose → The 410 appears after reconnects or long idle periods.
Fix → On 410, re-list to get a fresh resource_version, reconcile the full state, then start a new watch from that version. Use allow_watch_bookmarks=True to keep the version fresh.
Prevent → Use frameworks (kopf) or informer-style code that handles relist; design reconciliation to be level-triggered.
More on boto3, HTTP & API errors
`botocore.exceptions.NoCredentialsError: Unable to locate credentials`Beginner`botocore.exceptions.NoRegionError: You must specify a region.` even though `AWS_REGION` is set.Intermediate`botocore.exceptions.ClientError: An error occurred (UnauthorizedOperation) when calling the DescribeInstances operation: You are not authorized to perform this operation.`Beginner`An error occurred (ExpiredToken) when calling the ... operation: The security token included in the request is expired` midway through a long job.Advanced`An error occurred (RequestLimitExceeded) when calling the DescribeInstances operation (reached max retries: 4): Request limit exceeded.`Intermediate`An error occurred (InvalidClientTokenId) when calling the GetCallerIdentity operation: The security token included in the request is invalid.`Beginner