Skip to content

Conversation

@orgmir
Copy link

@orgmir orgmir commented Nov 9, 2025

I'm running danger-kotlin in gitlab CI. Its failing with the following:

kotlinx.serialization.json.internal.JsonDecodingException: Unexpected JSON token at offset 7342: Failed to parse int for input '2148774789' at path: $.danger.gitlab.mr.head_pipeline.id
JSON input: .....: {
          "id": 2148774789,
          "iid": 12911,
.....

This fixes this particular issue, but I was pretty confused that this happened given that Gitlab API docs say this value is an integer.

Screenshot 2025-11-10 at 10 22 38

This fixes serialization of pipeline "ids" that do not fit inside an Int.
@sbuvaka-fhl
Copy link

#316

@gianluz
Copy link
Member

gianluz commented Nov 11, 2025

thanks for the MR @orgmir ! i had the same issue on our CI, for safety also other ids needs to be Long. see #317

@orgmir
Copy link
Author

orgmir commented Nov 11, 2025

Thank you!

@gianluz
Copy link
Member

gianluz commented Nov 11, 2025

fix was released in 1.3.4, please update and let me know if everything works!!

@gianluz gianluz closed this Nov 11, 2025
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

Successfully merging this pull request may close these issues.

3 participants