AllenNeuralDynamics / aind-metadata-service

Service to retrieve Labtracks/Sharepoint info using a REST API
MIT License
3 stars 1 forks source link

Fix tars integration #205

Closed mekhlakapoor closed 4 months ago

mekhlakapoor commented 4 months ago

Describe the bug The metadata service procedures endpoint returns a multi status error when the tars endpoint returns no data found.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://aind-metadata-service/procedures/717904
  2. See MultiStatus message

Expected behavior The multi status message should only return when there was an issue with the database, not when there was no data found. Add a check that if tars_response.status_code == StatusCodes.NO_DATA_FOUND -> pass

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.