Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
volker-raschek opened this issue Oct 14, 2024 · 3 comments
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/upstream This is an issue in one of Gitea's dependencies and should be reported there

Comments

@volker-raschek
Copy link

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

@wxiaoguang
Copy link
Contributor

wxiaoguang commented 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 wxiaoguang added issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/upstream This is an issue in one of Gitea's dependencies and should be reported there and removed type/bug labels Oct 15, 2024
@wxiaoguang
Copy link
Contributor

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
Copy link
Contributor

wxiaoguang commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
issue/needs-feedback For bugs, we need more details. For features, the feature must be described in more detail type/upstream This is an issue in one of Gitea's dependencies and should be reported there
Projects
None yet
Development

No branches or pull requests

2 participants