Closed KrishPatel13 closed 1 year ago
Hi @KrishPatel13, this may be an issue with your AWS credentials - could you check your ~/.aws/config file and try adding a default region as indicated in the Boto3 documentation here?
Closing this issue as unable to reproduce. If you are still having issues, please re-open with additional information.
Expected behavior
Running
python comprehend_detect.py
should print the data follwoing from https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/python/example_code/comprehend/comprehend_detect.py#L176But in my case it gave the below mentioned error.
Actual behavior
I have also tried other workarounds mentioned here: https://stackoverflow.com/questions/40377662/boto3-client-noregionerror-you-must-specify-a-region-error-only-sometimes
But still I get the same error
Steps to reproduce
Logs / stacktrace (if applicable)