# Error when building ZeroGPU space

**URL:** <https://discuss.huggingface.co/t/error-when-building-zerogpu-space/167553>\
**Category:** Spaces\
**Created:** [August 21, 2025, 12:47pm UTC](https://discuss.huggingface.co/t/error-when-building-zerogpu-space/167553 "2025-08-21T12:47:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsfwalex](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@nsfwalex](https://discuss.huggingface.co/u/nsfwalex)\
**Post date:** [August 21, 2025, 12:47pm UTC](https://discuss.huggingface.co/t/error-when-building-zerogpu-space/167553/1 "2025-08-21T12:47:51Z")

</div>

```auto
--> Pushing image

--> ERROR: failed to push spaces-registry.huggingface.tech/spaces/68679f7661b7667ecbde8af0:zero-4906209-rqb2xeyl-debug: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://spaces-registry.huggingface.tech/auth/token?scope=repository%3Aspaces%2F68679f7661b7667ecbde8af0%3Apull%2Cpush&service=spaces-registry.huggingface.tech: 401 Unauthorized

```

the error above shows up at last building stage of my zerogpu space. it looks like there’s an issue with pushing docker image, i tried multiple times it did not work, normal space seems fine. any one knows why? thanks

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [August 21, 2025, 2:40pm UTC](https://discuss.huggingface.co/t/error-when-building-zerogpu-space/167553/2 "2025-08-21T14:40:14Z")

</div>

I found [this issue](https://github.com/huggingface/huggingface_hub/issues/3237#issuecomment-3096975095). Could it be some kind of block?

---

<div class="post-metadata">

**Author:** ![nsfwalex](https://avatars.discourse-cdn.com/v4/letter/n/9e8a1a/32.png) [@nsfwalex](https://discuss.huggingface.co/u/nsfwalex)\
**Post date:** [August 21, 2025, 2:51pm UTC](https://discuss.huggingface.co/t/error-when-building-zerogpu-space/167553/3 "2025-08-21T14:51:16Z")

</div>

hi John, thanks for your reply. I’m not sure if it’s blocking, there’s no security issue in that space. but i’ll try to duplicate it and see if it works.
