# Runtime error trying to create Autotrain space

**URL:** <https://discuss.huggingface.co/t/runtime-error-trying-to-create-autotrain-space/61727>\
**Category:** 🤗AutoTrain\
**Created:** [November 10, 2023, 1:07am UTC](https://discuss.huggingface.co/t/runtime-error-trying-to-create-autotrain-space/61727 "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](https://discuss.huggingface.co/u/ccasazza22)\
**Post date:** [November 10, 2023, 1:07am UTC](https://discuss.huggingface.co/t/runtime-error-trying-to-create-autotrain-space/61727/1 "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](https://discuss.huggingface.co/u/abhishek)\
**Post date:** [November 10, 2023, 7:18am UTC](https://discuss.huggingface.co/t/runtime-error-trying-to-create-autotrain-space/61727/2 "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](https://discuss.huggingface.co/u/zzLeo)\
**Post date:** [November 20, 2023, 8:01am UTC](https://discuss.huggingface.co/t/runtime-error-trying-to-create-autotrain-space/61727/3 "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.
