# Runtime error trying to create Autotrain space

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-trying-to-create-autotrain-space%2F61727%3E%5C
**Category:** 🤗AutoTrain\
**Created:** [November 10, 2023, 1:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-trying-to-create-autotrain-space%2F61727 "2023-11-10T01:07:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ccasazza22](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@ccasazza22](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fccasazza22)%5C
**Post date:** [November 10, 2023, 1:07am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-trying-to-create-autotrain-space%2F61727%2F1 "2023-11-10T01:07:56Z")

</div>

I am following the instructions described here: [Updating AutoTrain Advanced to Latest Version](https://huggingface.co/docs/autotrain/v0.6.10/getting_started#updating-autotrain-advanced-to-latest-version)

However as the space is built, it returns a runtime error with the following error: File “/app/src/autotrain/apps/utils.py”, line 94, in \_login\_user  
username = user\_info[“name”]  
KeyError: ‘name’

I am logged in and have a payment method on file, so at a bit of a loss on how to fix this.

Any guidance is appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![abhishek](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/abhishek/32/32360_2.png) [@abhishek](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fabhishek)%5C
**Post date:** [November 10, 2023, 7:18am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-trying-to-create-autotrain-space%2F61727%2F2 "2023-11-10T07:18:19Z")

</div>

HF\_TOKEN seems to be mising

---

<div class="post-metadata">

**Author:** ![zzLeo](https://avatars.discourse-cdn.com/v4/letter/z/ec9cab/32.png) [@zzLeo](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FzzLeo)%5C
**Post date:** [November 20, 2023, 8:01am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fruntime-error-trying-to-create-autotrain-space%2F61727%2F3 "2023-11-20T08:01:03Z")

</div>

You need to copy your “Access Tokens” to the setting “HF\_TOKEN” of New Space.  
The HF\_TOKEN code is at “account → setting → Access Tokens”  
I hope it works for you.
