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

CreateBranch "branch already exists" error is returned as 500 #1898

Closed
itaiad200 opened this issue May 6, 2021 · 0 comments · Fixed by #1900
Closed

CreateBranch "branch already exists" error is returned as 500 #1898

itaiad200 opened this issue May 6, 2021 · 0 comments · Fixed by #1900
Assignees
Labels
area/API Improvements or additions to the API bug Something isn't working

Comments

@itaiad200
Copy link
Contributor

Trace from airflow:

021-05-06 07:34:25,512] {create_branch_operator.py:45} INFO - Create lakeFS branch 'airflow-created-branch' in repo 'repo1' from source 'main'
[2021-05-06 07:34:26,229] {taskinstance.py:1457} ERROR - Task failed with exception
Traceback (most recent call last):
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_provider/hooks/lakefs_hook.py", line 43, in create_branch
source=source_branch))
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 772, in call
return self.callable(self, *args, **kwargs)
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api/branches_api.py", line 113, in __create_branch
return self.call_with_http_info(**kwargs)
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 850, in call_with_http_info
collection_formats=params['collection_format'])
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 415, in call_api
_check_type)
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 203, in __call_api
raise e
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 200, in __call_api
_request_timeout=_request_timeout)
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/api_client.py", line 461, in request
body=body)
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/rest.py", line 273, in POST
body=body)
File "/home/astro/.local/lib/python3.7/site-packages/lakefs_client/rest.py", line 224, in request
raise ServiceException(http_resp=r)
lakefs_client.exceptions.ServiceException: (500)
Reason: Internal Server Error
HTTP response headers: HTTPHeaderDict({'Date': 'Thu, 06 May 2021 07:34:25 GMT', 'Content-Type': 'application/json', 'Content-Length': '69', 'Connection': 'keep-alive', 'X-Request-Id': '1989b450-9510-4b00-a348-96d5fe99ca2a'})
HTTP response body: {"message":"branch 'airflow-created-branch': branch already exists"}

@itaiad200 itaiad200 added bug Something isn't working area/API Improvements or additions to the API labels May 6, 2021
@itaiad200 itaiad200 self-assigned this May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/API Improvements or additions to the API bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant