ArgoCD: Webhook processing failed: json: cannot unmarshal string into Go struct field .repository.created_at of type int64 #13597

Closed
opened 2025-11-02 10:47:37 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @volker-raschek on GitHub (Oct 14, 2024).

Description

I've deployed Gitea v1.22.1 via the official helm chart into my kubernetes cluster. In my cluster is also running ArgoCD to manage updates and deployments via GitDevOps.

The documentation of ArgoCD describes how to configure a WebHook to inform about new git commits pushed into a git repository - a dedicated documentation how to configure a WebHook for Gitea is missing.

Nevertheless, I tried to configure the WebHook like the example of GitHub. When I execute a test, Gitea receive an HTTP Statuscode 400 with the error message Webhook processing failed: json: cannot unmarshal string into Go struct field .repository.created_at of type int64.

  1. Please provide a clear documentation on ArgoCD how to configure a WebHook in Gitea correctly.
  2. Try to reproduce the error with an public ArgoCD instance. I've currently installed ArgoCD 2.12.4 via the helm chart v7.6.8.

Gitea Version

1.22.1

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

Bildschirmfoto vom 2024-10-14 21-32-40
Bildschirmfoto vom 2024-10-14 21-33-22

Git Version

No response

Operating System

No response

How are you running Gitea?

As helm chart v10.4.0

Database

PostgreSQL

Originally created by @volker-raschek on GitHub (Oct 14, 2024). ### Description I've deployed Gitea v1.22.1 via the official helm chart into my kubernetes cluster. In my cluster is also running ArgoCD to manage updates and deployments via GitDevOps. The [documentation](https://argo-cd.readthedocs.io/en/latest/operator-manual/webhook/) of ArgoCD describes how to configure a WebHook to inform about new git commits pushed into a git repository - a dedicated documentation how to configure a WebHook for Gitea is missing. Nevertheless, I tried to configure the WebHook like the example of GitHub. When I execute a test, Gitea receive an HTTP Statuscode 400 with the error message `Webhook processing failed: json: cannot unmarshal string into Go struct field .repository.created_at of type int64`. 1. Please provide a clear documentation on ArgoCD how to configure a WebHook in Gitea correctly. 2. Try to reproduce the error with an public ArgoCD instance. I've currently installed ArgoCD 2.12.4 via the helm chart v7.6.8. ### Gitea Version 1.22.1 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots ![Bildschirmfoto vom 2024-10-14 21-32-40](https://github.com/user-attachments/assets/91bda3eb-988d-4125-9d68-ef66d3abdd24) ![Bildschirmfoto vom 2024-10-14 21-33-22](https://github.com/user-attachments/assets/92c1c46f-d7a3-4851-aea8-032da1c2cc97) ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? As helm chart v10.4.0 ### Database PostgreSQL
GiteaMirror added the issue/needs-feedbacktype/upstream labels 2025-11-02 10:47:37 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Oct 15, 2024):

It seems that the create_at field is string-type since 2016/2017, but ArgoCD are not able to parse it correctly?

image

@wxiaoguang commented on GitHub (Oct 15, 2024): It seems that the `create_at` field is string-type since 2016/2017, but ArgoCD are not able to parse it correctly? ![image](https://github.com/user-attachments/assets/de422e7c-e04a-4720-88ce-3e8ececc918d)
Author
Owner

@wxiaoguang commented on GitHub (Oct 15, 2024):

The documentation of ArgoCD describes how to configure a WebHook to inform about new git commits pushed into a git repository - a dedicated documentation how to configure a WebHook for Gitea is missing.
Nevertheless, I tried to configure the WebHook like the example of GitHub.

It seems that the problem is ArgoCD lacks Gitea support. Gitea is not GitHub and the API definitions are different in many ways.

@wxiaoguang commented on GitHub (Oct 15, 2024): > The [documentation](https://argo-cd.readthedocs.io/en/latest/operator-manual/webhook/) of ArgoCD describes how to configure a WebHook to inform about new git commits pushed into a git repository - a dedicated documentation how to configure a WebHook for Gitea is missing. > Nevertheless, I tried to configure the WebHook like the example of GitHub. It seems that the problem is ArgoCD lacks Gitea support. Gitea is not GitHub and the API definitions are different in many ways.
Author
Owner

@wxiaoguang commented on GitHub (Oct 21, 2024):

Have you tried to use Gogs as the webhook? Maybe the Gogs one works, since Gitea hard-forked from Gogs since 2016.

@wxiaoguang commented on GitHub (Oct 21, 2024): Have you tried to use Gogs as the webhook? Maybe the Gogs one works, since Gitea hard-forked from Gogs since 2016.
Author
Owner

@volker-raschek commented on GitHub (Nov 4, 2024):

Hi @wxiaoguang,
no I have not tried it with Gogs, yet. I will test it the next days and will report my test results.

@volker-raschek commented on GitHub (Nov 4, 2024): Hi @wxiaoguang, no I have not tried it with Gogs, yet. I will test it the next days and will report my test results.
Author
Owner

@GiteaBot commented on GitHub (Dec 4, 2024):

We close issues that need feedback from the author if there were no new comments for a month. 🍵

@GiteaBot commented on GitHub (Dec 4, 2024): We close issues that need feedback from the author if there were no new comments for a month. :tea:
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13597