Open
Description
I am trying to use GitLab DBT project repo using DbtGitRemoteHook
dbt_run = DbtRunOperator(
task_id="dbt_run",
project_dir="https://domain/abc/-/tree/main/dbt/db_metrics?private_token=abcdesf",
dbt_conn_id="dbt_conn_id",
target="dev",
do_xcom_push_artifacts=["run_results.json"],
)
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='scm.platform.us-west-2.io', port=443): Max retries exceeded with url: https://scm.platform.us-west-2.io/users/auth/saml (Caused by ResponseError('too many redirects'))
When i tried to access on the browser with https and the token i was able to access
Also tried with below project_dir
project_dir="https://$gitlabUser:$gitlabToken@domain/abc.git",
File "/home/airflow/.local/lib/python3.10/site-packages/dulwich/client.py", line 705, in clone
result = self.fetch(path, target, progress=progress, depth=depth)
File "/home/airflow/.local/lib/python3.10/site-packages/dulwich/client.py", line 782, in fetch
result = self.fetch_pack(
File "/home/airflow/.local/lib/python3.10/site-packages/dulwich/client.py", line 2085, in fetch_pack
refs, server_capabilities, url = self._discover_references(
File "/home/airflow/.local/lib/python3.10/site-packages/dulwich/client.py", line 1941, in _discover_references
resp, read = self._http_request(url, headers)
File "/home/airflow/.local/lib/python3.10/site-packages/dulwich/client.py", line 2219, in _http_request
raise HTTPUnauthorized(resp.headers.get("WWW-Authenticate"), url)
dulwich.client.HTTPUnauthorized: No valid credentials provided
Metadata
Metadata
Assignees
Labels
New feature or requestNew feature or request