Skip to content

[QC-1260] Consider handling better invalid JSON from ccdbApi->list - #2703

Open
Barthelemy wants to merge 1 commit into
AliceO2Group:masterfrom
Barthelemy:handle-listing-qcdb-error
Open

Barthelemy wants to merge 1 commit into
AliceO2Group:masterfrom
Barthelemy:handle-listing-qcdb-error

Conversation

@Barthelemy

Copy link
Copy Markdown
Collaborator

The json error was already handled in the sense that it was not crashing and it was logging a human readable error. I added a test and added a bit more output in case we don't find the objects we are looking for in the listing.

The json error was already handled in the sense that it was not crashing and it was logging a human readable error.
I added a test and added a bit more output in case we don't find the objects we are looking for in the listing.

@knopers8 knopers8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, it's probably all we can do on the QC side.

I still believe that CcdbApi::list should not return an HTML-formatted error as a return value (especially that we ask for "Application/JSON"), but just throw an exception, so the caller knows an error happened before validating its inputs. It's not for this PR though.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants