-
Notifications
You must be signed in to change notification settings - Fork 2
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
HTTP Status 417: Expectation Failed Returned when using no parameters or _revinclude/_include #18
Comments
My bad, after cloning and stepping through the code, the 417 error looks to be as designed. I traced it back to FHIR .Net line 336/337 where it is treating the _include and _revinclude as a separate type of parameter and doesn't add them to the main parameters. I don't know for sure this is valid FHIR or not. I would suggest maybe instead of a 417, that some kind of error message be returned with and explanation as to why it's being received. |
Hi @LaMMMy I'm as annoyed as you are when it comes to OperationOutcome, it should contain more information, but often lacks details when an unwarranted exception occurs in underlying libraries. What I often do to figure out what causes an error, is to download the FhirStarter source code and use it directly instead of the nuget packages. Often it is an expectation that is wrong or a library that shouldn't have been updated (that happens a lot). Your request url looks correct though since you are asking for a :. Which is a valid FHIR request. The only difference between _include and _revinclude, is what is regarded as the first element in the list. |
Hi @verzada |
@LaMMMy I'm not sure what you are trying to do though, I'm wondering if you mean to return Practitioners with the Organization resource added to the Bundle. Have you copied the template project and started working from it? |
This is exactly what we're trying to do. I have used the Template project both directly out of the Git repo just now to see if the 417 still occurs and it does for the included Patient service. I've also used the template to create my own services. None of them will accept the I'm thinking we can get away with using the history query but I would still love to see just a default request work, with no parameters 😄 |
Found an unintended bug when searching with no parameters in the FhirController. Fixing it now. Test and see if you can make it work now by updating the bonfire and flare nuget package. |
… be possible to search directly on a Resource
When calling a GET to
[Base]/Organization?_include=Practitioner:organization
a FHIRStarter implementation returns "417 Expectation Failed". This also happens when no parameters are provided. According to:http://hl7.org/fhir/2018Sep/search.html#revinclude
[Base]/Organization?_include=Practitioner:organization
is a valid request.The text was updated successfully, but these errors were encountered: