Skip to content

Warn user when detecting misconfigured server external_url? #1978

Closed
@nejch

Description

@nejch

As seen in #1977, #1934 and older issues, paginated list() calls will fail when the server's external URL is not configured properly because we trust the links headers returned by the GitLab server:

next_url = links["next"]["url"]

Maybe we should warn (or fail explicitly) if we detect the base url differs from the URL advertised back by the server?

(Just to avoid new issues popping up every now and then)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions