gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

Deployment webhook event 'deployable_id' exceeds Java Int range

Open kouros51 opened this issue 2 years ago • 1 comments

When revieving deployment event with a deployable_id that's too large, Jackson is failing to convert the JSON body to an object:

! com.fasterxml.jackson.core.exc.InputCoercionException: Numeric value (3110732268) out of range of int (-2147483648 - 2147483647)

Here is the deployment event received, please note that we sanitized some of the fields for privacy sake:

{
    "object_kind": "deployment",
    "status": "running",
    "status_changed_at": "2022-09-30 14:38:50 +0000",
    "deployment_id": 355739973,
    "deployable_id": 3110732268,
    "deployable_url": "<SANITIZED>",
    "environment": "<SANITIZED>",
    "project": {
        "id": 25450874,
        "name": "<SANITIZED>",
        "description": "<SANITIZED>",
        "web_url": "<SANITIZED>"
    }
    ....
}

kouros51 avatar Oct 03 '22 13:10 kouros51

Hello,

Which version of gfitlab4j-api do you use? Can you try with the latest version? 5.0.1

jabby avatar Oct 03 '22 21:10 jabby