8000 Getting an SSL error when querying project · python-gitlab python-gitlab · Discussion #3212 · GitHub
[go: up one dir, main page]

Skip to content

Getting an SSL error when querying project #3212

Answered by quazar-omega
quazar-omega asked this question in Q&A
Discussion options

You must be logged in to vote

I found out the root cause by printing the server responses from within the urllib library:

UserWarning: The base URL in the server response differs from the user-provided base URL (https://gitlab.example.com:443 -> https://gitlab.example.com:80)

So it was a configuration issue, I had this in my compose.yaml:

services:
  gitlab:
    image: gitlab/gitlab-ee:18.0.1-ee.0
    container_name: gitlab
    restart: always
    hostname: '$HOSTNAME'
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        # Add any other gitlab.rb configuration here, each on its own line
        # I'm including only relevant configs here
        external_url 'http://$HOSTNAME'
    ports:
      - '$SSH_PORT:22'
    …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@quazar-omega
Comment options

Comment options
8000

You must be logged in to vote
3 replies
@nejch
Comment options

@quazar-omega
Comment options

@nejch
Comment options

Answer selected by quazar-omega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
0