amazon-connect / amazon-connect-salesforce-lambda

Apache License 2.0
45 stars 34 forks source link

InvalidParameterException when calling the ListQueues operation in Lambda sfRealTimeQueueMetrics #47

Closed ilove2git closed 1 year ago

ilove2git commented 1 year ago

Hi,

I faced this surprising error from invocation of Lambda function sfRealTimeQueueMetrics. Then instance Id I config in EV is correct, but i don't understand why it returns this exception. Btw, the lambda package i installed is 5.18 while the adapter in salesforce is 5.19. Is that fine with these different version. Since both installations are automatically, i can't choose to install specific version. Thanks a lot, looking forward to your quick reply.

[ERROR] InvalidParameterException: An error occurred (InvalidParameterException) when calling the ListQueues operation: Invalid parameter: xxcf0xx1-d0xx-xx5a-xxe7-axxe10fcxxxx Traceback (most recent call last):   File "/var/task/sfRealTimeQueueMetrics.py", line 89, in lambda_handler     raise e   File "/var/task/sfRealTimeQueueMetrics.py", line 59, in lambda_handler     queues_data = connect.list_queues(InstanceId=instance_id,QueueTypes=['STANDARD'],MaxResults=int(queue_max_result))   File "/opt/python/lib/python3.7/site-packages/botocore/client.py", line 357, in _api_call     return self._make_api_call(operation_name, kwargs)   File "/opt/python/lib/python3.7/site-packages/botocore/client.py", line 661, in _make_api_call     raise error_class(parsed_response, operation_name)

ilove2git commented 1 year ago

close the issue since it's my mistake that an extra space was added at the beginning by accident.