boto / boto3

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

UnknownOperationException API - ListGroupMembershipsForMember - boto3 Identitystore v1.34.15 #3985

Closed alessandraguedes closed 8 months ago

alessandraguedes commented 8 months ago

Describe the bug

My identity center holds data coming from AD using AD Sync. When I tried to use the IdentityStore API's ListGroupMembershipsForMember and ListGroupMemberships, it showed an error: 'botocore.exceptions.ClientError: an error occurred (UnknownOperationException) when calling the ListGroupMembershipsForMember operation.' However, when I performed the same test in another account that had data coming from SAM 2.0, the API worked correctly. Below are the images of the error and my code. Error:

Screenshot 2024-01-08 at 13 49 13

Code:

Screenshot 2024-01-10 at 14 18 58

Expected Behavior

The API should return data related to the groups I have in the Identity Center.

Current Behavior

I get this error:

Screenshot 2024-01-08 at 13 49 13

Reproduction Steps

from botocore.exceptions import ClientError
import boto3

try:
    client = boto3.client('identitystore')
    p = client.get_paginator('list_group_memberships_for_member')
    paginator = p.paginate(IdentityStoreId=sso_instance,
        MemberId={
            'UserId': userId
        })
    all_groups = []
    print(paginator)
    for page in paginator:
        all_groups.extend(page["GroupMemberships"])
    print(all_groups)
except ClientError as e:
    print(e.response['Error']['Message'])

Possible Solution

No response

Additional Information/Context

No response

SDK version used

1.34.15

Environment details (OS name and version, etc.)

macOS 14.2.1

RyanFitzSimmonsAK commented 8 months ago

Hi @alessandraguedes, thanks for reaching out. Could you provide debug logs of this behavior? You can get debug logs by adding boto3.set_stream_logger('') to the top of your script, and redacting any sensitive information. Thanks!

github-actions[bot] commented 8 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.

alessandraguedes commented 8 months ago

sh-3.2$ /usr/bin/env /usr/bin/python3 /Users/alessandra.guedes/.vscode/extensions/ms-python.python-2023.22.1/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher 54854 -- /Users/alessandra.guedes/Desktop/Repository/Arquivos\ Py/cognito.py 2024-01-17 09:15:18,213 botocore.hooks [DEBUG] Changing event name from creating-client-class.iot-data to creating-client-class.iot-data-plane 2024-01-17 09:15:18,216 botocore.hooks [DEBUG] Changing event name from before-call.apigateway to before-call.api-gateway 2024-01-17 09:15:18,218 botocore.hooks [DEBUG] Changing event name from request-created.machinelearning.Predict to request-created.machine-learning.Predict 2024-01-17 09:15:18,221 botocore.hooks [DEBUG] Changing event name from before-parameter-build.autoscaling.CreateLaunchConfiguration to before-parameter-build.auto-scaling.CreateLaunchConfiguration 2024-01-17 09:15:18,221 botocore.hooks [DEBUG] Changing event name from before-parameter-build.route53 to before-parameter-build.route-53 2024-01-17 09:15:18,222 botocore.hooks [DEBUG] Changing event name from request-created.cloudsearchdomain.Search to request-created.cloudsearch-domain.Search 2024-01-17 09:15:18,223 botocore.hooks [DEBUG] Changing event name from docs..autoscaling.CreateLaunchConfiguration.complete-section to docs..auto-scaling.CreateLaunchConfiguration.complete-section 2024-01-17 09:15:18,228 botocore.hooks [DEBUG] Changing event name from before-parameter-build.logs.CreateExportTask to before-parameter-build.cloudwatch-logs.CreateExportTask 2024-01-17 09:15:18,228 botocore.hooks [DEBUG] Changing event name from docs..logs.CreateExportTask.complete-section to docs..cloudwatch-logs.CreateExportTask.complete-section 2024-01-17 09:15:18,228 botocore.hooks [DEBUG] Changing event name from before-parameter-build.cloudsearchdomain.Search to before-parameter-build.cloudsearch-domain.Search 2024-01-17 09:15:18,229 botocore.hooks [DEBUG] Changing event name from docs..cloudsearchdomain.Search.complete-section to docs..cloudsearch-domain.Search.complete-section 2024-01-17 09:15:18,237 botocore.utils [DEBUG] IMDS ENDPOINT: http://169.254.169.254/ 2024-01-17 09:15:18,251 botocore.credentials [DEBUG] Looking for credentials via: env 2024-01-17 09:15:18,252 botocore.credentials [DEBUG] Looking for credentials via: assume-role 2024-01-17 09:15:18,252 botocore.credentials [DEBUG] Looking for credentials via: assume-role-with-web-identity 2024-01-17 09:15:18,252 botocore.credentials [DEBUG] Looking for credentials via: sso 2024-01-17 09:15:18,253 botocore.credentials [DEBUG] Looking for credentials via: shared-credentials-file 2024-01-17 09:15:18,254 botocore.credentials [INFO] Found credentials in shared credentials file: ~/.aws/credentials 2024-01-17 09:15:18,285 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/endpoints.json 2024-01-17 09:15:18,325 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/sdk-default-configuration.json 2024-01-17 09:15:18,326 botocore.hooks [DEBUG] Event choose-service-name: calling handler <function handle_service_name_alias at 0x103a651f0> 2024-01-17 09:15:18,445 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/sso-admin/2020-07-20/service-2.json.gz 2024-01-17 09:15:18,522 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/sso-admin/2020-07-20/endpoint-rule-set-1.json.gz 2024-01-17 09:15:18,524 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/partitions.json 2024-01-17 09:15:18,529 botocore.hooks [DEBUG] Event creating-client-class.sso-admin: calling handler <function add_generate_presigned_url at 0x10397fd30> 2024-01-17 09:15:18,530 botocore.configprovider [DEBUG] Looking for endpoint for sso-admin via: environment_service 2024-01-17 09:15:18,530 botocore.configprovider [DEBUG] Looking for endpoint for sso-admin via: environment_global 2024-01-17 09:15:18,530 botocore.configprovider [DEBUG] Looking for endpoint for sso-admin via: config_service 2024-01-17 09:15:18,530 botocore.configprovider [DEBUG] Looking for endpoint for sso-admin via: config_global 2024-01-17 09:15:18,530 botocore.configprovider [DEBUG] No configured endpoint found. 2024-01-17 09:15:18,536 botocore.endpoint [DEBUG] Setting sso timeout as (60, 60) 2024-01-17 09:15:18,542 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/_retry.json 2024-01-17 09:15:18,543 botocore.client [DEBUG] Registering retry handlers for service: sso-admin 2024-01-17 09:15:18,545 botocore.hooks [DEBUG] Event before-parameter-build.sso-admin.ListInstances: calling handler <function generate_idempotent_uuid at 0x103a71e50> 2024-01-17 09:15:18,546 botocore.regions [DEBUG] Calling endpoint provider with parameters: {'Region': 'us-east-1', 'UseDualStack': False, 'UseFIPS': False} 2024-01-17 09:15:18,548 botocore.regions [DEBUG] Endpoint provider result: https://sso.us-east-1.amazonaws.com 2024-01-17 09:15:18,549 botocore.hooks [DEBUG] Event before-call.sso-admin.ListInstances: calling handler <function add_recursion_detection_header at 0x103a71af0> 2024-01-17 09:15:18,550 botocore.hooks [DEBUG] Event before-call.sso-admin.ListInstances: calling handler <function inject_api_version_header_if_needed at 0x103a7b700> 2024-01-17 09:15:18,550 botocore.endpoint [DEBUG] Making request for OperationModel(name=ListInstances) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'SWBExternalService.ListInstances', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.34.15 md/Botocore#1.34.12 ua/2.0 os/macos#23.2.0 md/arch#x86_64 lang/python#3.9.6 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.34.12'}, 'body': b'{}', 'url': 'https://sso.us-east-1.amazonaws.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x10a2a2550>, 'has_streaming_input': False, 'auth_type': None}} 2024-01-17 09:15:18,551 botocore.hooks [DEBUG] Event request-created.sso-admin.ListInstances: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10a2a2490>> 2024-01-17 09:15:18,551 botocore.hooks [DEBUG] Event choose-signer.sso-admin.ListInstances: calling handler <function set_operation_specific_signer at 0x103a71d30> 2024-01-17 09:15:18,554 botocore.auth [DEBUG] Calculating signature using v4 auth. 2024-01-17 09:15:18,554 botocore.auth [DEBUG] CanonicalRequest: POST /

content-type:application/x-amz-json-1.1 host:sso.us-east-1.amazonaws.com x-amz-date:20240117T121518Z x-amz-security-token:IQoJb3JpZ2luX2VjEBUaCXVzLWVhc3QtMSJHMEUCIQCy4N0HaTkWW6iwKdUim2y/uHOvc1zmoo7Uv6qrhXrJ7AIgZUUX3qKzrncxEbVhV/Or4AobTPEe7mCFEW9m8+B7igcq9AEIvf//////////ARABGgwzOTE3NDczMzE3MDYiDFuDOkAZg3yvazatayrIAQRbU83627kQIGSIpYUi+wDO9z2vmWz067zH1WjTYbW9i7pMP4rVYWhXbFU5Jls/7HB/NYrxcib+4iTMSH1fVw6w8Uzn/LHck7h5bJfMej5j3RPfTBfaXKhA5NwBFUkstSsIMVq7w+8JgsJn/UBWdHvp5gjVH8lpOtFxXEzeU8KcM47UAMAQuj6Shxni8uRIFnlNjsS6jocRNPCp3kwjRZDxD2t6jg6d6qCE3zBFKKqsPerWZSrIfb+nMxtNDxSOEQmhbNUb5NT+MJaJn60GOpgBHZW6p6h3rzvAKr6vAWyQpF0F9DfNPsOjTnn4c2vyx8ZrLPb5382qSzNa4eYW/L1KEp/KYWuSuwLBDC8tIVeglhikbvxOZwCM6UfGNJOkbQjNPQjVcR3WWgnBH3s9DkpZxJFBjolgKQ47EUhbicCMPSnh7BpuTCGNf6Lih74WT6+zmDLuIThR5gRoERm5uz97J4xJM46sZIc= x-amz-target:SWBExternalService.ListInstances

content-type;host;x-amz-date;x-amz-security-token;x-amz-target 44136fa355b3678a1146ad16f7e8649e94fb4fc21fe77e8310c060f61caaff8a 2024-01-17 09:15:18,554 botocore.auth [DEBUG] StringToSign: AWS4-HMAC-SHA256 20240117T121518Z 20240117/us-east-1/sso/aws4_request 1452dbaa9d198d6012df54c42e3d1bff30dc07793046e07d9b97a377480e5c6c 2024-01-17 09:15:18,555 botocore.auth [DEBUG] Signature: 8f2d29716ae061807d33dc41cd9fa85ad3ee427c4ebd7d3e09fcd7efa95e303a 2024-01-17 09:15:18,555 botocore.hooks [DEBUG] Event request-created.sso-admin.ListInstances: calling handler <function add_retry_headers at 0x103a7bdc0> 2024-01-17 09:15:18,556 botocore.endpoint [DEBUG] Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://sso.us-east-1.amazonaws.com/, headers={'X-Amz-Target': b'SWBExternalService.ListInstances', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.34.15 md/Botocore#1.34.12 ua/2.0 os/macos#23.2.0 md/arch#x86_64 lang/python#3.9.6 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.34.12', 'X-Amz-Date': b'20240117T121518Z', 'X-Amz-Security-Token': b'IQoJb3JpZ2luX2VjEBUaCXVzLWVhc3QtMSJHMEUCIQCy4N0HaTkWW6iwKdUim2y/uHOvc1zmoo7Uv6qrhXrJ7AIgZUUX3qKzrncxEbVhV/Or4AobTPEe7mCFEW9m8+B7igcq9AEIvf//////////ARABGgwzOTE3NDczMzE3MDYiDFuDOkAZg3yvazatayrIAQRbU83627kQIGSIpYUi+wDO9z2vmWz067zH1WjTYbW9i7pMP4rVYWhXbFU5Jls/7HB/NYrxcib+4iTMSH1fVw6w8Uzn/LHck7h5bJfMej5j3RPfTBfaXKhA5NwBFUkstSsIMVq7w+8JgsJn/UBWdHvp5gjVH8lpOtFxXEzeU8KcM47UAMAQuj6Shxni8uRIFnlNjsS6jocRNPCp3kwjRZDxD2t6jg6d6qCE3zBFKKqsPerWZSrIfb+nMxtNDxSOEQmhbNUb5NT+MJaJn60GOpgBHZW6p6h3rzvAKr6vAWyQpF0F9DfNPsOjTnn4c2vyx8ZrLPb5382qSzNa4eYW/L1KEp/KYWuSuwLBDC8tIVeglhikbvxOZwCM6UfGNJOkbQjNPQjVcR3WWgnBH3s9DkpZxJFBjolgKQ47EUhbicCMPSnh7BpuTCGNf6Lih74WT6+zmDLuIThR5gRoERm5uz97J4xJM46sZIc=', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAVWNPV4Z5NB2L5YPH/20240117/us-east-1/sso/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=8f2d29716ae061807d33dc41cd9fa85ad3ee427c4ebd7d3e09fcd7efa95e303a', 'amz-sdk-invocation-id': b'1a6f5ef9-bcb0-4b34-96ab-01bdaf755451', 'amz-sdk-request': b'attempt=1', 'Content-Length': '2'}> 2024-01-17 09:15:18,558 botocore.httpsession [DEBUG] Certificate path: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/certifi/cacert.pem 2024-01-17 09:15:18,559 urllib3.connectionpool [DEBUG] Starting new HTTPS connection (1): sso.us-east-1.amazonaws.com:443 2024-01-17 09:15:19,230 urllib3.connectionpool [DEBUG] https://sso.us-east-1.amazonaws.com:443 "POST / HTTP/1.1" 200 675 2024-01-17 09:15:19,232 botocore.parsers [DEBUG] Response headers: {'Date': 'Wed, 17 Jan 2024 12:15:19 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '675', 'Connection': 'keep-alive', 'x-amzn-RequestId': '8cbe0b70-4a84-457f-83f5-e2da6fb3b2e4'} 2024-01-17 09:15:19,232 botocore.parsers [DEBUG] Response body: b'{"Instances":[{"CreatedDate":1.614861378178E9,"IdentityStoreId":"d-9067668d9d","InstanceArn":"arn:aws:sso:::instance/ssoins-7223cd3e42bae4fe","OwnerAccountId":"391747331706","State":{"Name":"ACTIVE"},"Status":"ACTIVE"}],"NextToken":"AAMA-EFRSURBSGp6YkU0SWk4MWVtZzhYVUhvYnRUMjllcVZCeVZNaFhrTVcvbEtYa2h3YThnSDNtWHhLOG41c1FIZ1NNWSsrOGw0QUFBQUFmakI4QmdrcWhraUc5dzBCQndhZ2J6QnRBZ0VBTUdnR0NTcUdTSWIzRFFFSEFUQWVCZ2xnaGtnQlpRTUVBUzR3RVFRTXlTalUyd09wUEgwNVcxR3VBZ0VRZ0RzaTVLMWRUMFBtbXcwb1JZZU9FbUc3bThXZzJpRWI1N0ZCNURvZnlpd1cwZkhOWXZyWDJSK2ZSRDYyY1N2ZFdNNmNlcUxRRDdLeE13QmFEUT091pHZq0SL9dKcgpHUJpnGDGZuchaNssMF-Gr06DI2z5_XozYOtjxG5MwFX83tJ3atmUPEClaHs2nQzzRh7AbKpPwtVFfY1mRKZtIJRwwG"}' 2024-01-17 09:15:19,234 botocore.hooks [DEBUG] Event needs-retry.sso-admin.ListInstances: calling handler <botocore.retryhandler.RetryHandler object at 0x10a2d98b0> 2024-01-17 09:15:19,234 botocore.retryhandler [DEBUG] No retry needed. sso_instanced-9067668d9d 2024-01-17 09:15:19,237 botocore.hooks [DEBUG] Event choose-service-name: calling handler <function handle_service_name_alias at 0x103a651f0> 2024-01-17 09:15:19,241 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/identitystore/2020-06-15/service-2.json.gz 2024-01-17 09:15:19,245 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/identitystore/2020-06-15/endpoint-rule-set-1.json.gz 2024-01-17 09:15:19,248 botocore.hooks [DEBUG] Event creating-client-class.identitystore: calling handler <function add_generate_presigned_url at 0x10397fd30> 2024-01-17 09:15:19,249 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: environment_service 2024-01-17 09:15:19,249 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: environment_global 2024-01-17 09:15:19,249 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: config_service 2024-01-17 09:15:19,249 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: config_global 2024-01-17 09:15:19,249 botocore.configprovider [DEBUG] No configured endpoint found. 2024-01-17 09:15:19,256 botocore.endpoint [DEBUG] Setting identitystore timeout as (60, 60) 2024-01-17 09:15:19,258 botocore.client [DEBUG] Registering retry handlers for service: identitystore 2024-01-17 09:15:19,259 botocore.hooks [DEBUG] Event before-parameter-build.identitystore.ListUsers: calling handler <function generate_idempotent_uuid at 0x103a71e50> 2024-01-17 09:15:19,259 botocore.regions [DEBUG] Calling endpoint provider with parameters: {'Region': 'us-east-1', 'UseDualStack': False, 'UseFIPS': False} 2024-01-17 09:15:19,260 botocore.regions [DEBUG] Endpoint provider result: https://identitystore.us-east-1.amazonaws.com 2024-01-17 09:15:19,261 botocore.hooks [DEBUG] Event before-call.identitystore.ListUsers: calling handler <function add_recursion_detection_header at 0x103a71af0> 2024-01-17 09:15:19,261 botocore.hooks [DEBUG] Event before-call.identitystore.ListUsers: calling handler <function inject_api_version_header_if_needed at 0x103a7b700> 2024-01-17 09:15:19,262 botocore.endpoint [DEBUG] Making request for OperationModel(name=ListUsers) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSIdentityStore.ListUsers', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.34.15 md/Botocore#1.34.12 ua/2.0 os/macos#23.2.0 md/arch#x86_64 lang/python#3.9.6 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.34.12'}, 'body': b'{"IdentityStoreId": "d-9067668d9d", "Filters": [{"AttributePath": "UserName", "AttributeValue": "sa_dcis@wilson.sons"}]}', 'url': 'https://identitystore.us-east-1.amazonaws.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x10a2d90d0>, 'has_streaming_input': False, 'auth_type': None}} 2024-01-17 09:15:19,262 botocore.hooks [DEBUG] Event request-created.identitystore.ListUsers: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10a2d9130>> 2024-01-17 09:15:19,263 botocore.hooks [DEBUG] Event choose-signer.identitystore.ListUsers: calling handler <function set_operation_specific_signer at 0x103a71d30> 2024-01-17 09:15:19,264 botocore.auth [DEBUG] Calculating signature using v4 auth. 2024-01-17 09:15:19,264 botocore.auth [DEBUG] CanonicalRequest: POST /

content-type:application/x-amz-json-1.1 host:identitystore.us-east-1.amazonaws.com x-amz-date:20240117T121519Z x-amz-security-token:IQoJb3JpZ2luX2VjEBUaCXVzLWVhc3QtMSJHMEUCIQCy4N0HaTkWW6iwKdUim2y/uHOvc1zmoo7Uv6qrhXrJ7AIgZUUX3qKzrncxEbVhV/Or4AobTPEe7mCFEW9m8+B7igcq9AEIvf//////////ARABGgwzOTE3NDczMzE3MDYiDFuDOkAZg3yvazatayrIAQRbU83627kQIGSIpYUi+wDO9z2vmWz067zH1WjTYbW9i7pMP4rVYWhXbFU5Jls/7HB/NYrxcib+4iTMSH1fVw6w8Uzn/LHck7h5bJfMej5j3RPfTBfaXKhA5NwBFUkstSsIMVq7w+8JgsJn/UBWdHvp5gjVH8lpOtFxXEzeU8KcM47UAMAQuj6Shxni8uRIFnlNjsS6jocRNPCp3kwjRZDxD2t6jg6d6qCE3zBFKKqsPerWZSrIfb+nMxtNDxSOEQmhbNUb5NT+MJaJn60GOpgBHZW6p6h3rzvAKr6vAWyQpF0F9DfNPsOjTnn4c2vyx8ZrLPb5382qSzNa4eYW/L1KEp/KYWuSuwLBDC8tIVeglhikbvxOZwCM6UfGNJOkbQjNPQjVcR3WWgnBH3s9DkpZxJFBjolgKQ47EUhbicCMPSnh7BpuTCGNf6Lih74WT6+zmDLuIThR5gRoERm5uz97J4xJM46sZIc= x-amz-target:AWSIdentityStore.ListUsers

content-type;host;x-amz-date;x-amz-security-token;x-amz-target 4bbdc40633ee88b19ea48141e788236cc496a384307510d7389ca21306f506df 2024-01-17 09:15:19,264 botocore.auth [DEBUG] StringToSign: AWS4-HMAC-SHA256 20240117T121519Z 20240117/us-east-1/identitystore/aws4_request 2602d88bf99e6129f1ad1409b22de800ceab5b39ebfd5fa0fac76d6ce7733651 2024-01-17 09:15:19,264 botocore.auth [DEBUG] Signature: 6c45413d91828c6683ac7cea060580d4a50405d160706d8f20810cb26248f784 2024-01-17 09:15:19,265 botocore.hooks [DEBUG] Event request-created.identitystore.ListUsers: calling handler <function add_retry_headers at 0x103a7bdc0> 2024-01-17 09:15:19,265 botocore.endpoint [DEBUG] Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://identitystore.us-east-1.amazonaws.com/, headers={'X-Amz-Target': b'AWSIdentityStore.ListUsers', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.34.15 md/Botocore#1.34.12 ua/2.0 os/macos#23.2.0 md/arch#x86_64 lang/python#3.9.6 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.34.12', 'X-Amz-Date': b'20240117T121519Z', 'X-Amz-Security-Token': b'IQoJb3JpZ2luX2VjEBUaCXVzLWVhc3QtMSJHMEUCIQCy4N0HaTkWW6iwKdUim2y/uHOvc1zmoo7Uv6qrhXrJ7AIgZUUX3qKzrncxEbVhV/Or4AobTPEe7mCFEW9m8+B7igcq9AEIvf//////////ARABGgwzOTE3NDczMzE3MDYiDFuDOkAZg3yvazatayrIAQRbU83627kQIGSIpYUi+wDO9z2vmWz067zH1WjTYbW9i7pMP4rVYWhXbFU5Jls/7HB/NYrxcib+4iTMSH1fVw6w8Uzn/LHck7h5bJfMej5j3RPfTBfaXKhA5NwBFUkstSsIMVq7w+8JgsJn/UBWdHvp5gjVH8lpOtFxXEzeU8KcM47UAMAQuj6Shxni8uRIFnlNjsS6jocRNPCp3kwjRZDxD2t6jg6d6qCE3zBFKKqsPerWZSrIfb+nMxtNDxSOEQmhbNUb5NT+MJaJn60GOpgBHZW6p6h3rzvAKr6vAWyQpF0F9DfNPsOjTnn4c2vyx8ZrLPb5382qSzNa4eYW/L1KEp/KYWuSuwLBDC8tIVeglhikbvxOZwCM6UfGNJOkbQjNPQjVcR3WWgnBH3s9DkpZxJFBjolgKQ47EUhbicCMPSnh7BpuTCGNf6Lih74WT6+zmDLuIThR5gRoERm5uz97J4xJM46sZIc=', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAVWNPV4Z5NB2L5YPH/20240117/us-east-1/identitystore/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=6c45413d91828c6683ac7cea060580d4a50405d160706d8f20810cb26248f784', 'amz-sdk-invocation-id': b'04c9acfd-8bb1-406a-ad14-40f5ac7cd9e6', 'amz-sdk-request': b'attempt=1', 'Content-Length': '120'}> 2024-01-17 09:15:19,266 botocore.httpsession [DEBUG] Certificate path: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/certifi/cacert.pem 2024-01-17 09:15:19,267 urllib3.connectionpool [DEBUG] Starting new HTTPS connection (1): identitystore.us-east-1.amazonaws.com:443 2024-01-17 09:15:21,580 urllib3.connectionpool [DEBUG] https://identitystore.us-east-1.amazonaws.com:443 "POST / HTTP/1.1" 200 105 2024-01-17 09:15:21,580 botocore.parsers [DEBUG] Response headers: {'Date': 'Wed, 17 Jan 2024 12:15:21 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '105', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'ff669a54-3101-4dc0-8dc2-7acd275293cb'} 2024-01-17 09:15:21,581 botocore.parsers [DEBUG] Response body: b'{"Users":[{"UserId":"9067668d9d-521fd823-c07c-4ed1-8c8f-c3e223c44a28","UserName":"xxxx"}]}' 2024-01-17 09:15:21,581 botocore.hooks [DEBUG] Event needs-retry.identitystore.ListUsers: calling handler <botocore.retryhandler.RetryHandler object at 0x10a31ee80> 2024-01-17 09:15:21,582 botocore.retryhandler [DEBUG] No retry needed. userId :9067668d9d-521fd823-c07c-4ed1-8c8f-c3e223c44a28 2024-01-17 09:15:21,582 botocore.hooks [DEBUG] Event choose-service-name: calling handler <function handle_service_name_alias at 0x103a651f0> 2024-01-17 09:15:21,583 botocore.hooks [DEBUG] Event creating-client-class.identitystore: calling handler <function add_generate_presigned_url at 0x10397fd30> 2024-01-17 09:15:21,584 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: environment_service 2024-01-17 09:15:21,584 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: environment_global 2024-01-17 09:15:21,584 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: config_service 2024-01-17 09:15:21,584 botocore.configprovider [DEBUG] Looking for endpoint for identitystore via: config_global 2024-01-17 09:15:21,585 botocore.configprovider [DEBUG] No configured endpoint found. 2024-01-17 09:15:21,590 botocore.endpoint [DEBUG] Setting identitystore timeout as (60, 60) 2024-01-17 09:15:21,591 botocore.client [DEBUG] Registering retry handlers for service: identitystore 2024-01-17 09:15:21,666 botocore.loaders [DEBUG] Loading JSON file: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/botocore/data/identitystore/2020-06-15/paginators-1.json <botocore.paginate.PageIterator object at 0x10a31edf0> 2024-01-17 09:15:21,667 botocore.hooks [DEBUG] Event before-parameter-build.identitystore.ListGroupMembershipsForMember: calling handler <function generate_idempotent_uuid at 0x103a71e50> 2024-01-17 09:15:21,668 botocore.regions [DEBUG] Calling endpoint provider with parameters: {'Region': 'us-east-1', 'UseDualStack': False, 'UseFIPS': False} 2024-01-17 09:15:21,668 botocore.regions [DEBUG] Endpoint provider result: https://identitystore.us-east-1.amazonaws.com 2024-01-17 09:15:21,669 botocore.hooks [DEBUG] Event before-call.identitystore.ListGroupMembershipsForMember: calling handler <function add_recursion_detection_header at 0x103a71af0> 2024-01-17 09:15:21,669 botocore.hooks [DEBUG] Event before-call.identitystore.ListGroupMembershipsForMember: calling handler <function inject_api_version_header_if_needed at 0x103a7b700> 2024-01-17 09:15:21,669 botocore.endpoint [DEBUG] Making request for OperationModel(name=ListGroupMembershipsForMember) with params: {'url_path': '/', 'query_string': '', 'method': 'POST', 'headers': {'X-Amz-Target': 'AWSIdentityStore.ListGroupMembershipsForMember', 'Content-Type': 'application/x-amz-json-1.1', 'User-Agent': 'Boto3/1.34.15 md/Botocore#1.34.12 ua/2.0 os/macos#23.2.0 md/arch#x86_64 lang/python#3.9.6 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.34.12'}, 'body': b'{"IdentityStoreId": "d-9067668d9d", "MemberId": {"UserId": "9067668d9d-521fd823-c07c-4ed1-8c8f-c3e223c44a28"}}', 'url': 'https://identitystore.us-east-1.amazonaws.com/', 'context': {'client_region': 'us-east-1', 'client_config': <botocore.config.Config object at 0x10a3b9b50>, 'has_streaming_input': False, 'auth_type': None}} 2024-01-17 09:15:21,670 botocore.hooks [DEBUG] Event request-created.identitystore.ListGroupMembershipsForMember: calling handler <bound method RequestSigner.handler of <botocore.signers.RequestSigner object at 0x10a3b9ac0>> 2024-01-17 09:15:21,670 botocore.hooks [DEBUG] Event choose-signer.identitystore.ListGroupMembershipsForMember: calling handler <function set_operation_specific_signer at 0x103a71d30> 2024-01-17 09:15:21,671 botocore.auth [DEBUG] Calculating signature using v4 auth. 2024-01-17 09:15:21,671 botocore.auth [DEBUG] CanonicalRequest: POST /

content-type:application/x-amz-json-1.1 host:identitystore.us-east-1.amazonaws.com x-amz-date:20240117T121521Z x-amz-security-token:IQoJb3JpZ2luX2VjEBUaCXVzLWVhc3QtMSJHMEUCIQCy4N0HaTkWW6iwKdUim2y/uHOvc1zmoo7Uv6qrhXrJ7AIgZUUX3qKzrncxEbVhV/Or4AobTPEe7mCFEW9m8+B7igcq9AEIvf//////////ARABGgwzOTE3NDczMzE3MDYiDFuDOkAZg3yvazatayrIAQRbU83627kQIGSIpYUi+wDO9z2vmWz067zH1WjTYbW9i7pMP4rVYWhXbFU5Jls/7HB/NYrxcib+4iTMSH1fVw6w8Uzn/LHck7h5bJfMej5j3RPfTBfaXKhA5NwBFUkstSsIMVq7w+8JgsJn/UBWdHvp5gjVH8lpOtFxXEzeU8KcM47UAMAQuj6Shxni8uRIFnlNjsS6jocRNPCp3kwjRZDxD2t6jg6d6qCE3zBFKKqsPerWZSrIfb+nMxtNDxSOEQmhbNUb5NT+MJaJn60GOpgBHZW6p6h3rzvAKr6vAWyQpF0F9DfNPsOjTnn4c2vyx8ZrLPb5382qSzNa4eYW/L1KEp/KYWuSuwLBDC8tIVeglhikbvxOZwCM6UfGNJOkbQjNPQjVcR3WWgnBH3s9DkpZxJFBjolgKQ47EUhbicCMPSnh7BpuTCGNf6Lih74WT6+zmDLuIThR5gRoERm5uz97J4xJM46sZIc= x-amz-target:AWSIdentityStore.ListGroupMembershipsForMember

content-type;host;x-amz-date;x-amz-security-token;x-amz-target eaf7c1d76f915376cb5ae43aa8d8873d99f565f736f1693597ccbe8033fb70bc 2024-01-17 09:15:21,671 botocore.auth [DEBUG] StringToSign: AWS4-HMAC-SHA256 20240117T121521Z 20240117/us-east-1/identitystore/aws4_request 0237a10f01b371fd7e07596148a56e49837c5fadc0b130b62362f221e113d432 2024-01-17 09:15:21,671 botocore.auth [DEBUG] Signature: e5f42d00bc9c7a6e68ba7a2b69a38cfa551d0dca402da27c9128c8e9a95044cb 2024-01-17 09:15:21,672 botocore.hooks [DEBUG] Event request-created.identitystore.ListGroupMembershipsForMember: calling handler <function add_retry_headers at 0x103a7bdc0> 2024-01-17 09:15:21,672 botocore.endpoint [DEBUG] Sending http request: <AWSPreparedRequest stream_output=False, method=POST, url=https://identitystore.us-east-1.amazonaws.com/, headers={'X-Amz-Target': b'AWSIdentityStore.ListGroupMembershipsForMember', 'Content-Type': b'application/x-amz-json-1.1', 'User-Agent': b'Boto3/1.34.15 md/Botocore#1.34.12 ua/2.0 os/macos#23.2.0 md/arch#x86_64 lang/python#3.9.6 md/pyimpl#CPython cfg/retry-mode#legacy Botocore/1.34.12', 'X-Amz-Date': b'20240117T121521Z', 'X-Amz-Security-Token': b'IQoJb3JpZ2luX2VjEBUaCXVzLWVhc3QtMSJHMEUCIQCy4N0HaTkWW6iwKdUim2y/uHOvc1zmoo7Uv6qrhXrJ7AIgZUUX3qKzrncxEbVhV/Or4AobTPEe7mCFEW9m8+B7igcq9AEIvf//////////ARABGgwzOTE3NDczMzE3MDYiDFuDOkAZg3yvazatayrIAQRbU83627kQIGSIpYUi+wDO9z2vmWz067zH1WjTYbW9i7pMP4rVYWhXbFU5Jls/7HB/NYrxcib+4iTMSH1fVw6w8Uzn/LHck7h5bJfMej5j3RPfTBfaXKhA5NwBFUkstSsIMVq7w+8JgsJn/UBWdHvp5gjVH8lpOtFxXEzeU8KcM47UAMAQuj6Shxni8uRIFnlNjsS6jocRNPCp3kwjRZDxD2t6jg6d6qCE3zBFKKqsPerWZSrIfb+nMxtNDxSOEQmhbNUb5NT+MJaJn60GOpgBHZW6p6h3rzvAKr6vAWyQpF0F9DfNPsOjTnn4c2vyx8ZrLPb5382qSzNa4eYW/L1KEp/KYWuSuwLBDC8tIVeglhikbvxOZwCM6UfGNJOkbQjNPQjVcR3WWgnBH3s9DkpZxJFBjolgKQ47EUhbicCMPSnh7BpuTCGNf6Lih74WT6+zmDLuIThR5gRoERm5uz97J4xJM46sZIc=', 'Authorization': b'AWS4-HMAC-SHA256 Credential=ASIAVWNPV4Z5NB2L5YPH/20240117/us-east-1/identitystore/aws4_request, SignedHeaders=content-type;host;x-amz-date;x-amz-security-token;x-amz-target, Signature=e5f42d00bc9c7a6e68ba7a2b69a38cfa551d0dca402da27c9128c8e9a95044cb', 'amz-sdk-invocation-id': b'0040f8f2-50d0-4802-b2eb-4867b679da4b', 'amz-sdk-request': b'attempt=1', 'Content-Length': '110'}> 2024-01-17 09:15:21,673 botocore.httpsession [DEBUG] Certificate path: /Users/alessandra.guedes/Library/Python/3.9/lib/python/site-packages/certifi/cacert.pem 2024-01-17 09:15:21,674 urllib3.connectionpool [DEBUG] Starting new HTTPS connection (1): identitystore.us-east-1.amazonaws.com:443 2024-01-17 09:15:22,283 urllib3.connectionpool [DEBUG] https://identitystore.us-east-1.amazonaws.com:443 "POST / HTTP/1.1" 400 38 2024-01-17 09:15:22,284 botocore.parsers [DEBUG] Response headers: {'Date': 'Wed, 17 Jan 2024 12:15:22 GMT', 'Content-Type': 'application/x-amz-json-1.1', 'Content-Length': '38', 'Connection': 'keep-alive', 'x-amzn-RequestId': 'b587ca6e-1df9-48ac-936d-496e4d50ce82'} 2024-01-17 09:15:22,284 botocore.parsers [DEBUG] Response body: b'{"__type":"UnknownOperationException"}' 2024-01-17 09:15:22,286 botocore.hooks [DEBUG] Event needs-retry.identitystore.ListGroupMembershipsForMember: calling handler <botocore.retryhandler.RetryHandler object at 0x10a3d5f10> 2024-01-17 09:15:22,287 botocore.retryhandler [DEBUG] No retry needed.

RyanFitzSimmonsAK commented 8 months ago

Thanks for providing those. I don't see anything in the debug logs that indicate an issue with the SDK. I've reached out to the Identity Center team about this issue. In the meantime, as this is a service team issue, I've created a tracking issue (https://github.com/aws/aws-sdk/issues/682) in our cross-SDK repository. Please refer to that issue for any updates. Thanks!

github-actions[bot] commented 8 months ago

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.