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

Gitea Push Event: cannot unmarshal struct field .repository.created_at #197

Open
kimdre opened this issue Aug 1, 2024 · 1 comment
Open

Comments

@kimdre
Copy link

kimdre commented Aug 1, 2024

Using Gitea, when the webhook sends a push event, the following error occurs while parsing the event data:

json: cannot unmarshal string into Go struct field .repository.created_at of type int64

The mentioned element looks like this:

"created_at": "2024-07-31T22:08:54+02:00",

Could it be that a unix/epoch timestamp as an integer is expected here but a datetime string is returned instead?

@pansachin
Copy link
Contributor

Yeah, it's expecting a unix epoch time. Example can be seen here

"created_at": 1469173225,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants