# TypeError: Cannot read property 'name' of undefined

**URL:** <https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494>\
**Category:** Rancher 1.x\
**Created:** [January 19, 2016, 10:46pm UTC](https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494 "2016-01-19T22:46:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cloudlady911](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cloudlady911/32/782_2.png) [@cloudlady911](https://forums.suse.com/u/cloudlady911)\
**Post date:** [January 19, 2016, 10:46pm UTC](https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494/1 "2016-01-19T22:46:11Z")

</div>

I searched the forum and found some similar problems but the were listed as resolved in previous versions of Rancher

I am on v.51.0  
I am running the Rancher server on EC2 and the mysql database is on RDS.

When I attempt to provision an instance using the Amazon EC2 option under Hosts I get this error. I am using the US-West-1 region and I am sure that the account I am using has permissions to add EC2 instances.

Steps to Re-create  
Browse to Hosts  
Click Add Host  
Select Amazon EC2  
Enter the Access key  
Enter the Secret key  
Click Next: Authenticate and Select Network  
Error:  
TypeError: Cannot read property ‘name’ of undefined

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [January 19, 2016, 10:58pm UTC](https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494/2 "2016-01-19T22:58:10Z")

</div>

Please see the Github issue which contains the workaround. This error occurred due to the addition of AWS regions.

> <https://github.com/rancher/rancher/issues/3185>
>
> Server version - v0.52.0-rc4
> Not able to add Amazon EC2 host
> Error: TypeError: Cannot read property 'name' of undefined
> 
> ec2.ap-northeast-2.amazonaws.com/
> /v1/proxy
> 
> \<!DOCTYPE html\>
> \<!-- If you are...

---

<div class="post-metadata">

**Author:** ![cloudlady911](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cloudlady911/32/782_2.png) [@cloudlady911](https://forums.suse.com/u/cloudlady911)\
**Post date:** [January 19, 2016, 11:16pm UTC](https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494/3 "2016-01-19T23:16:22Z")

</div>

Thanks Denise. I saw that but did not think it was relevant because I thought it was listed at fixed.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [January 20, 2016, 12:08am UTC](https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494/4 "2016-01-20T00:08:21Z")

</div>

It’s fixed in v0.55.0-rc releases, but v0.55.0 is not out yet.

---

<div class="post-metadata">

**Author:** ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)\
**Post date:** [January 20, 2016, 12:08am UTC](https://forums.suse.com/t/typeerror-cannot-read-property-name-of-undefined/1494/5 "2016-01-20T00:08:24Z")

</div>

Closed on January 20, 2016, 12:08am UTC


