thoth-station / management-api

An API service used for administration of deployed Thoth
GNU General Public License v3.0
3 stars 11 forks source link

Empty response body for `/python/package-index/register` endpoint #912

Closed mayaCostantini closed 1 year ago

mayaCostantini commented 2 years ago

Describe the bug

Environment: prod Empty response body with status code 201 when trying to register the index https://download.pytorch.org/whl/cu113 on the /python/package-index/register endpoint.

To Reproduce Go to https://management.prod.thoth-station.ninja/api/v1/ui/#/Python%20Package%20Index/post_register_python_package_index and try to register https://download.pytorch.org/whl/cu113.

Expected behavior

Index is registered in Thoth's database.

mayaCostantini commented 2 years ago

/kind bug /priority critical-urgent /sig devsecops

mayaCostantini commented 2 years ago

Related to https://github.com/thoth-station/adviser/issues/2318

mayaCostantini commented 2 years ago

Update: the endpoint now returns a 500 error. The management-api version is still at 0.18.4 vs 0.18.5 for the newest release: https://github.com/thoth-station/thoth-application/blob/915ee779471b99da5cd5ac17cb4741e96456fe5f/management-api/overlays/moc-prod/imagestreamtag.yaml#L10. This might be caused by an issue deploying this version.

cc @harshad16

harshad16 commented 2 years ago

Thank for the response Even with updated management-api the response body is empty

Version:

x-management-api-service-version: 0.18.5+storage.0.72.1.common.0.36.2 
x-management-api-version: 0.18.5 

/triage accepted

harshad16 commented 1 year ago

The changes are now live. Executed the registry of new index. The URL index is now registered correctly. Screenshot from 2022-10-13 16-06-15

Thank you everyone for working on this. closing this issue.