Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Gitlab - Error 404 Not Found when syncing branch from repository feature disabled #23130

Closed
earthpyy opened this issue Feb 16, 2023 · 0 comments · Fixed by #26422
Closed

Comments

@earthpyy
Copy link

Environment

  • Airbyte version: 0.40.32
  • OS Version / Instance: Ubuntu 20.04
  • Deployment: Docker
  • Source Connector and version: Gitlab 1.0.2
  • Destination Connector and version: BigQuery 1.2.13
  • Step where error happened: Add connection between Gitlab <-> BigQuery / Run sync

Current Behavior

When syncing the repository with Repository feature disabled, error 404 Repository Not Found was reported on source. Seems like Gitlab API was returned 404 on branches endpoint when Repository featured was disabled.

404 Client Error: Not Found for url: https://gitlab.xxx.xxx/api/v4/projects/44/repository/branches?per_page=50

Project ID 44 general setting:
CleanShot 2566-02-16 at 14 38 39

After enable the feature, syncing works fine.

Expected Behavior

Syncing should run without any error. No branch emitted from the repository with Repository feature disabled.

Logs

  File "/usr/local/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry
    ret = target(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/backoff/_sync.py", line 105, in retry
    ret = target(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/http.py", line 321, in _send
    raise exc
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/streams/http/http.py", line 318, in _send
    response.raise_for_status()
  File "/usr/local/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://gitlab.xxx.xxx/api/v4/projects/44/repository/branches?per_page=50
2023-02-16 07:08:07 source > Finished syncing branches
2023-02-16 07:08:07 source > SourceGitlab runtimes:

Steps to Reproduce

  1. Add connection between Gitlab <-> BigQuery
  2. Run sync
@earthpyy earthpyy added needs-triage type/bug Something isn't working labels Feb 16, 2023
@sajarin sajarin changed the title Gitlab Source: Error 404 Not Found when syncing branch from repository feature disabled Source Gitlab - Error 404 Not Found when syncing branch from repository feature disabled Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants