thoughtworks / metrik

An easy-to-use, cross-platform measurement tool that pulls data out of CD pipelines and analysis the four key metrics for you.
MIT License
354 stars 87 forks source link

Out of range of int when parsing github actions run id #111

Closed paumanrique5699 closed 2 years ago

paumanrique5699 commented 2 years ago

Describe the bug Hello! I've been trying to use metrik with github actions, but I am having an issue when configuring a pipeline. After adding the Repository Name, URL and Personal Access Token, when verifying I get the following error:

{"status":500,"message":"Error while extracting response for type [class metrik.project.infrastructure.github.feign.response.MultipleRunResponse] and content type [application/json;charset=utf-8]; nested exception is org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Numeric value (2167882875) out of range of int (-2147483648 - 2147483647); nested exception is com.fasterxml.jackson.databind.JsonMappingException: Numeric value (2167882875) out of range of int (-2147483648 - 2147483647)\n at [Source: (PushbackInputStream); line: 1, column: 53] (through reference chain: metrik.project.infrastructure.github.feign.response.MultipleRunResponse[\"workflow_runs\"]->java.util.ArrayList[0]->metrik.project.infrastructure.github.feign.response.SingleRunResponse[\"id\"])"}

I tried a curl to the /actions/runs endpoint and I can see that in workflow_runs, the ids of the different runs are higher than 2147483647

Screenshots

Screenshot 2022-04-26 at 12 18 45

This is part of the result I get from the /actions/runs endpoint: Screenshot 2022-04-26 at 12 37 40

sddtc commented 2 years ago

I have the same issue

unixbps commented 2 years ago

we are also facing same issue, it also failing at Data sync.