boto / boto3

AWS SDK for Python
https://aws.amazon.com/sdk-for-python/
Apache License 2.0
9.07k stars 1.87k forks source link

AWS Inspectorv2 filterCriteria.accountId became required field. without notification. Application breaks. #4257

Closed arijit-tpr closed 1 month ago

arijit-tpr commented 2 months ago

Describe the bug

Error: An error occurred (ValidationException) when calling the ListCoverage operation: Pagination token exception in operation 'GetScanInformation': filter parameters changed in the request (Service: MandoResourceInformation, Status Code: 400, Request ID: 408d014b-df57-4ec8-9946-fbedad3eec46)

Boto3 version 1.35.12 , 1.34.128

Expected Behavior

Paginated data to be received in response.

Current Behavior

Error with no data

Reproduction Steps

https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/inspector2/paginator/ListCoverage.html

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.35.12

Environment details (OS name and version, etc.)

Windows

arijit-tpr commented 2 months ago

filterCriteria={ 'accountId': [ { 'comparison': 'EQUALS'|'NOT_EQUALS', 'value': 'string' }, ],

The accountId seems a mandatory field. But the document does not says so.

arijit-tpr commented 2 months ago

'"Error in EC2 Resource Coverage. Error: Error in getting EC2 Resource Coverage. Error: An error occurred (ValidationException) when calling the ListCoverage operation: 1 validation error detected: Value at \'filterCriteria.accountId\' failed to satisfy constraint: Member must have length less than or equal to 10"'}

tim-finnigan commented 2 months ago

Thanks for reaching out, can you please share a complete code snippet for reproducing the issue?

And could you also share debug logs (with any sensitive info redacted) by adding boto3.set_stream_logger('') to your script?

github-actions[bot] commented 2 months ago

Greetings! It looks like this issue hasn’t been active in longer than five days. We encourage you to check if this is still an issue in the latest release. In the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or upvote with a reaction on the initial post to prevent automatic closure. If the issue is already closed, please feel free to open a new one.