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

Added error message for RequestEntityTooLargeException in Export #2790

Merged
merged 2 commits into from
Sep 8, 2022

Conversation

PTaladay
Copy link
Collaborator

@PTaladay PTaladay commented Sep 2, 2022

Description

We now complete the JobReport as failed and return an actionable message instead of staying stuck as "accepted".

Related issues

Addresses [95042].

Testing

Updated Unit Tests.

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 50 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
  • Tag the PR with Azure API for FHIR if this will release to the Azure API for FHIR managed service (CosmosDB or common code related to service)
  • Tag the PR with Azure Healthcare APIs if this will release to the Azure Healthcare APIs managed service (Sql server or common code related to service)
  • CI is green before merge
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@PTaladay PTaladay added Bug Bug bug bug. Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR labels Sep 2, 2022
@PTaladay PTaladay added this to the S97 milestone Sep 2, 2022
@PTaladay PTaladay requested a review from a team as a code owner September 2, 2022 23:22
@@ -232,6 +232,11 @@ public async Task ExecuteAsync(ExportJobRecord exportJobRecord, WeakETag weakETa
_exportJobRecord.FailureDetails = new JobFailureDetails(ex.Message, HttpStatusCode.BadRequest);
await CompleteJobAsync(OperationStatus.Failed, cancellationToken);
}
catch (RequestEntityTooLargeException)
{
_exportJobRecord.FailureDetails = new JobFailureDetails(Core.Resources.RequestEntityTooLargeExceptionDuringExport, HttpStatusCode.RequestEntityTooLarge);
Copy link
Collaborator

Choose a reason for hiding this comment

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

We should be logging the error here like we do for the other exceptions.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you. I meant to add that in there.

@PTaladay PTaladay enabled auto-merge (squash) September 8, 2022 15:21
@PTaladay
Copy link
Collaborator Author

PTaladay commented Sep 8, 2022

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PTaladay PTaladay merged commit 6ae6291 into main Sep 8, 2022
@PTaladay PTaladay deleted the personal/patalada/Bug95042 branch September 8, 2022 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure API for FHIR Label denotes that the issue or PR is relevant to the Azure API for FHIR Bug Bug bug bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants