# The example client\_ID in Relay API reference may be incorrect

**URL:** <https://forum.openzeppelin.com/t/the-example-client-id-in-relay-api-reference-may-be-incorrect/5321>\
**Category:** Defender\
**Created:** [January 7, 2021, 5:13pm UTC](https://forum.openzeppelin.com/t/the-example-client-id-in-relay-api-reference-may-be-incorrect/5321 "2021-01-07T17:13:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loophe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/loophe/32/3451_2.png) [@loophe](https://forum.openzeppelin.com/u/loophe)\
**Post date:** [January 7, 2021, 5:13pm UTC](https://forum.openzeppelin.com/t/the-example-client-id-in-relay-api-reference-may-be-incorrect/5321/1 "2021-01-07T17:13:47Z")

</div>

When I test relay API，using example figured in reference:  
"import boto3  
from warrant.aws\_srp import AWSSRP

client = boto3.client(‘cognito-idp’)  
aws = AWSSRP(username=‘API\_KEY’, password=‘API\_SECRET’, pool\_id=‘us-west-2\_iLmIggsiy’, **client\_id=‘1bpd19lcr33qvg5cr3oi79rdap’,** client=client)  
tokens = aws.authenticate\_user()  
print(‘Access Token’, tokens[‘AuthenticationResult’][‘AccessToken’])"

**💻 Environment**

I got this error:  
“botocore.errorfactory.ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the InitiateAuth operation: User pool client 1bpd19lcr33qvg5cr3oi79rdap does not exist.”

**📝Details**

I check same guide on aws,that said:  
“This error should only be thrown if the client id you are passing actually does not exist.”

What I actually want ask is have the client\_id of user\_pool been changed?  
**🔢 Code to reproduce**

---

<div class="post-metadata">

**Author:** ![spalladino](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/spalladino/32/22_2.png) [@spalladino](https://forum.openzeppelin.com/u/spalladino)\
**Post date:** [January 7, 2021, 6:28pm UTC](https://forum.openzeppelin.com/t/the-example-client-id-in-relay-api-reference-may-be-incorrect/5321/2 "2021-01-07T18:28:29Z")

</div>

Hey @loophe! I’ve just managed to reproduce the issue. Apparently boto fails to locate the user pool if it’s not in the default us-east-1 region, and ours is in us-west-2. Adding the region to the client initialization does the trick:

```python
client = boto3.client('cognito-idp', region_name='us-west-2')

```

I’ll update the docs now. Thanks for reporting this!

---

<div class="post-metadata">

**Author:** ![loophe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.openzeppelin.com/loophe/32/3451_2.png) [@loophe](https://forum.openzeppelin.com/u/loophe)\
**Post date:** [January 8, 2021, 3:01am UTC](https://forum.openzeppelin.com/t/the-example-client-id-in-relay-api-reference-may-be-incorrect/5321/3 "2021-01-08T03:01:12Z")

</div>

yeah~I have got the access token!  
It does work!
