# Any commit fails with invalid header value

**URL:** <https://forum.gitea.com/t/any-commit-fails-with-invalid-header-value/2155>\
**Category:** Install/Maintain/Configure\
**Created:** [May 14, 2020, 10:42am UTC](https://forum.gitea.com/t/any-commit-fails-with-invalid-header-value/2155 "2020-05-14T10:42:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristofre](https://avatars.discourse-cdn.com/v4/letter/k/74df32/32.png) [@kristofre](https://forum.gitea.com/u/kristofre)\
**Post date:** [May 14, 2020, 10:42am UTC](https://forum.gitea.com/t/any-commit-fails-with-invalid-header-value/2155/1 "2020-05-14T10:42:54Z")

</div>

Hi,  
I just installed gitea on a kubernetes cluster and created my first user and repo.  
When I want to add a file (or make any changes to the contents of the repo) I get the following message:  
The change was rejected by the server with the following message:  
Gitea: Internal Server Error  
Unable to contact gitea: Post [http://0.0.0.0:3000/api/internal/hook/pre-receive/myrepo/dt:](http://0.0.0.0:3000/api/internal/hook/pre-receive/myrepo/dt:) net/http: invalid header field value “Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE1ODk0NTE3OTh9.bCeUdsVBTjJAkqL4RdQvSIhxpeLKk6ybzxokMXDb1Co\n” for key Authorization  
Please check githooks.  
Not sure what could cause this. It is the latest version of gitea.

Thanks in advance! Kristof

---

<div class="post-metadata">

**Author:** ![David](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@David](https://forum.gitea.com/u/David)\
**Post date:** [May 15, 2020, 7:58am UTC](https://forum.gitea.com/t/any-commit-fails-with-invalid-header-value/2155/2 "2020-05-15T07:58:15Z")

</div>

Yup, I’ve got that, too:

> [@Backup/Restore to new version -\> Internal Server Error](https://forum.gitea.com/t/backup-restore-to-new-version-internal-server-error/2149):
>
> Hi, I just tried to move gitea from a docker env to a kubernetes env using the newest version. Gitea is runing, I can login with my know users, I can pull a repository, I can create a repository and I can search through repositories. But trying to push changes to gitea to an existing repository gives me the following error: Total 38 (delta 17), reused 0 (delta 0) remote: Gitea: Internal Server Error remote: Unable to contact gitea: Post http://0.0.0.0:3000/api/internal/hook/pre-receive/sys/k8…
