Correct way to enter API URL for GitHub connector

Summary

The user is facing an error when setting up the source for the GitHub connector due to an issue with the API URL format.


Question

What is the correct way to enter the api url for the github connector, I entered <https://github>.&lt;company&gt;.com/ but when i press setup source I get the following error 'AttributeError("\'NoneType\' object has no attribute \'get\'")'



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

["api-url", "github-connector", "setup-error", "attribute-error"]

Bumping this thread around self hosted urls, would love any help :smile:

Do you have stacktrace for this error? More logs with line numbers can help narrow down where this error comes from.
Silly question, but have you tried without trailing / in api url?

Do you use GitHub or self-hosted version?

Tooltip for API URL says:
> Please enter your basic URL from self-hosted GitHub instance or leave it empty to use GitHub.
So if you use public GitHub, then default <https://api.github.com/> (or leave it empty) is a way to go

self hosted, i entered <https://github>.<company>.com/ but it still doesnt work

Here we go:

airbyte-worker                    | 2024-06-07 00:22:17 platform &gt; Creating docker container = source-github-check-229d4fc3-59fc-47c0-a31c-cd77bd8edd29-0-mbbdz with resources io.airbyte.config.ResourceRequirements@5907bc11[cpuRequest=,cpuLimit=,memoryRequest=,memoryLimit=,additionalProperties={}] and allowedHosts null
airbyte-worker                    | 2024-06-07 00:22:17 platform &gt; Preparing command: docker run --rm --init -i -w /data/229d4fc3-59fc-47c0-a31c-cd77bd8edd29/0 --log-driver none --name source-github-check-229d4fc3-59fc-47c0-a31c-cd77bd8edd29-0-mbbdz --network host -v airbyte_workspace:/data -v oss_local_root:/local -e DEPLOYMENT_MODE=OSS -e WORKER_CONNECTOR_IMAGE=airbyte/source-github:1.7.2 -e AUTO_DETECT_SCHEMA=true -e LAUNCHDARKLY_KEY= -e SOCAT_KUBE_CPU_REQUEST=0.1 -e SOCAT_KUBE_CPU_LIMIT=2.0 -e FIELD_SELECTION_WORKSPACES= -e USE_STREAM_CAPABLE_STATE=true -e WORKER_ENVIRONMENT=DOCKER -e AIRBYTE_ROLE=dev -e APPLY_FIELD_SELECTION=false -e WORKER_JOB_ATTEMPT=0 -e OTEL_COLLECTOR_ENDPOINT=<http://host.docker.internal:4317> -e FEATURE_FLAG_CLIENT=config -e AIRBYTE_VERSION=0.59.1 -e WORKER_JOB_ID=229d4fc3-59fc-47c0-a31c-cd77bd8edd29 airbyte/source-github:1.7.2 check --config source_config.json
airbyte-worker                    | 2024-06-07 00:22:17 platform &gt; Reading messages from protocol version 0.2.0
airbyte-worker                    | 2024-06-07 00:22:18 platform &gt; Check failed
airbyte-worker                    | 2024-06-07 00:22:19 platform &gt; Check connection job received output: io.airbyte.config.StandardCheckConnectionOutput@191c6b69[status=failed,message='AttributeError("\'NoneType\' object has no attribute \'get\'")',additionalProperties={}]
airbyte-worker                    | 2024-06-07 00:22:19 INFO i.a.c.t.HeartbeatUtils(withBackgroundHeartbeat):64 - Stopping temporal heartbeating...
airbyte-worker                    | 2024-06-07 00:22:19 platform &gt;
airbyte-worker                    | 2024-06-07 00:22:19 platform &gt; ----- END CHECK -----
airbyte-worker                    | 2024-06-07 00:22:19 INFO i.a.c.t.HeartbeatUtils(withBackgroundHeartbeat):73 - Temporal heartbeating stopped.
airbyte-worker                    | 2024-06-07 00:22:19 platform &gt;
airbyte-server                    | 2024-06-07 00:22:19 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - airbyte-webapp.airbyte_airbyte_internal - - [07/Jun/2024:00:21:53 +0000] "POST /api/v1/scheduler/sources/check_connection HTTP/1.0" 200 3548
airbyte-webapp                    | 192.168.239.11 - airbyte [07/Jun/2024:00:22:19 +0000] "POST /api/v1/scheduler/sources/check_connection HTTP/1.0" 200 3548 "<http://localhost:8000/workspaces/8e173386-52a2-4c14-8229-e3835d380624/source/new-source/ef69ef6e-aa7f-4af1-a01d-ef775033524e>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" "192.168.239.1"
airbyte-proxy                     | 192.168.239.1 - airbyte [07/Jun/2024:00:22:19 +0000] "POST /api/v1/scheduler/sources/check_connection HTTP/1.1" 200 3548 "<http://localhost:8000/workspaces/8e173386-52a2-4c14-8229-e3835d380624/source/new-source/ef69ef6e-aa7f-4af1-a01d-ef775033524e>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
airbyte-temporal                  | {"level":"info","ts":"2024-06-07T00:22:25.776Z","msg":"none","service":"matching","component":"matching-engine","wf-task-queue-name":"/_sys/default-worker-tq/1","wf-task-queue-type":"Activity","wf-namespace":"temporal-system","lifecycle":"Started","logging-call-at":"task_queue_manager.go:331"}
airbyte-temporal                  | {"level":"info","ts":"2024-06-07T00:22:26.810Z","msg":"none","service":"matching","component":"matching-engine","wf-task-queue-name":"/_sys/temporal-sys-batcher-taskqueue/3","wf-task-queue-type":"Workflow","wf-namespace":"temporal-system","lifecycle":"Started","logging-call-at":"task_queue_manager.go:331"}
airbyte-temporal                  | {"level":"info","ts":"2024-06-07T00:22:27.793Z","msg":"none","service":"matching","component":"matching-engine","wf-task-queue-name":"/_sys/temporal-sys-batcher-taskqueue/2","wf-task-queue-type":"Activity","wf-namespace":"temporal-system","lifecycle":"Started","logging-call-at":"task_queue_manager.go:331"}
airbyte-temporal                  | {"level":"info","ts":"2024-06-07T00:22:30.756Z","msg":"none","service":"matching","component":"matching-engine","wf-task-queue-name":"/_sys/temporal-archival-tq/3","wf-task-queue-type":"Workflow","wf-namespace":"temporal-system","lifecycle":"Stopped","logging-call-at":"task_queue_manager.go:363"}
airbyte-webapp                    | 192.168.239.11 - airbyte [07/Jun/2024:00:22:33 +0000] "GET /api/v1/health HTTP/1.0" 200 18 "<http://localhost:8000/workspaces/8e173386-52a2-4c14-8229-e3835d380624/source/new-source/ef69ef6e-aa7f-4af1-a01d-ef775033524e>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" "192.168.239.1"
airbyte-proxy                     | 192.168.239.1 - airbyte [07/Jun/2024:00:22:33 +0000] "GET /api/v1/health HTTP/1.1" 200 18 "<http://localhost:8000/workspaces/8e173386-52a2-4c14-8229-e3835d380624/source/new-source/ef69ef6e-aa7f-4af1-a01d-ef775033524e>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
airbyte-server                    | 2024-06-07 00:22:33 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - airbyte-webapp.airbyte_airbyte_internal - - [07/Jun/2024:00:22:33 +0000] "GET /api/v1/health HTTP/1.0" 200 18
airbyte-webapp                    | 192.168.239.11 - airbyte [07/Jun/2024:00:22:53 +0000] "GET /api/v1/health HTTP/1.0" 200 18 "<http://localhost:8000/workspaces/8e173386-52a2-4c14-8229-e3835d380624/source/new-source/ef69ef6e-aa7f-4af1-a01d-ef775033524e>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36" "192.168.239.1"
airbyte-proxy                     | 192.168.239.1 - airbyte [07/Jun/2024:00:22:53 +0000] "GET /api/v1/health HTTP/1.1" 200 18 "<http://localhost:8000/workspaces/8e173386-52a2-4c14-8229-e3835d380624/source/new-source/ef69ef6e-aa7f-4af1-a01d-ef775033524e>" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36"
airbyte-server                    | 2024-06-07 00:22:53 INFO i.m.h.s.n.h.a.e.AccessLog(log):125 - airbyte-webapp.airbyte_airbyte_internal - - [07/Jun/2024:00:22:53 +0000] "GET /api/v1/health HTTP/1.0" 200 18```

Yeah tried both