You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This causes an error in creation of the response body as the dotnet library seams to have issues with adding a response body to a response with HttpStatusCode.NotModified. An empty response also is an issue for the application as it is expecting data and not getting any. I'm reading the data using fhirclient.js, not sure whether it can disable it.
The exception I'm getting is:
Connection id "0HN834R99BCFH", Request id "0HN834R99BCFH:00000001": An unhandled exception was thrown by the application.
System.InvalidOperationException: Writing to the response body is invalid for responses with status code 304.
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.Advance(Int32 bytes)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpResponsePipeWriter.Advance(Int32 bytes)
at Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.Write(HttpResponse response, String text, Encoding encoding)
at Microsoft.AspNetCore.Http.HttpResponseWritingExtensions.WriteAsync(HttpResponse response, String text, Encoding encoding, CancellationToken cancellationToken)
at fhir.candle.Controllers.FhirController.AddFhirResponse(HttpResponse response, String prefer, Boolean success, FhirResponseContext opResponse) in C:\Data\github-philips\fhir-dicom\src\DicomOnFhir.App.FhirCandle\Controllers\FhirController.cs:line 214
at fhir.candle.Controllers.FhirController.GetResourceInstance(String storeName, String resourceName, String id, String format, String summary, String pretty, String ifMatch, String ifModifiedSince, String ifNoneMatch, String authHeader) in C:\Data\github-philips\fhir-dicom\src\DicomOnFhir.App.FhirCandle\Controllers\FhirController.cs:line 449
Disabling this behavior by removing line 2034-2042 in VersionFhirStore,cs, disables this behavior and fixes the issue.
I suggest to make support of 'ifNoneMatch' optional (and return an empty response) and to add a configuration variable for it or to remove the functionality.
The text was updated successfully, but these errors were encountered:
When accessing FhirCandle from a browser I ran into the issue that the
If-None-Match
header is set.Such behavior is supported (see https://www.hl7.org/fhir/http.html#cread).
This causes an error in creation of the response body as the dotnet library seams to have issues with adding a response body to a response with HttpStatusCode.NotModified. An empty response also is an issue for the application as it is expecting data and not getting any. I'm reading the data using fhirclient.js, not sure whether it can disable it.
The exception I'm getting is:
Disabling this behavior by removing line 2034-2042 in VersionFhirStore,cs, disables this behavior and fixes the issue.
I suggest to make support of 'ifNoneMatch' optional (and return an empty response) and to add a configuration variable for it or to remove the functionality.
The text was updated successfully, but these errors were encountered: