Skip to content

gitlab intigretion 500 error #4362

Description

@tfnick

To Reproduce

  1. selfhost gitlab with version 14.10
  2. Dokploy config gitlab source and action

Current vs. Expected behavior

current:

Dokploy web log:

query: 'update "gitlab" set "access_token" = $1, "refresh_token" = $2, "expires_at" = $3 where "gitlab"."gitlabId" = $4 returning "gitlabId", "gitlabUrl", "gitlabInternalUrl", "application_id", "redirect_uri", "secret", "access_token", "refresh_token", "group_name", "expires_at", "gitProviderId"',
params: [Array],
[cause]: Error [PostgresError]: invalid input syntax for type integer: "NaN"
at ignore-listed frames {
severity_local: 'ERROR',
severity: 'ERROR',
code: '22P02',
where: "unnamed portal parameter $3 = '...'",
file: 'numutils.c',
line: '617',
routine: 'pg_strtoint32_safe'
}
}

It seems like expires_at ($3) field value is NaN.

expect in Dokploy:

if (expires_at is NaN)
    expires_at = 3600
and insert into gitlab table

Provide environment information

Rocky 9

Which area(s) are affected? (Select all that apply)

Databases

Are you deploying the applications where Dokploy is installed or on a remote server?

Same server where Dokploy is installed

Additional context

No response

Will you send a PR to fix it?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions