-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Null reference exception in RequestHandlerWrapperImpl #438
Comments
Ah one more thing. I mentioned this issue is intermittent. It seems to come on with greater load. |
Our registration code:
Help us Obi-Wan. |
Probably related: JasperFx/lamar#157 |
Uhhhhhhh No idea. You aren't using |
No. Was not aware that existed. |
I have no idea about duplicates. You can check for sure by resolving the same pipeline directly from Lamar yourself: https://github.com/jbogard/MediatR/blob/master/src/MediatR/Internal/RequestHandlerWrapper.cs#L57 What does this return for you? |
That is exactly the screenshot I posted. The code looks slightly different because I had to rewrite a bit to be able to debug at runtime. It returns a list of 11 objects - one of which is null and there are several duplicates. |
Definitely a Lamar issue. Doesn't look like the issue is going to get much movement there. I can't think of any solutions on your end that doesn't involve providing a way for consumers to serve up the IEnumerable<> |
We could probably get something working by implementing a more complicated |
Moved back to StructureMap to resolve this issue. |
Hi there. We are currently experiencing intermittent object reference exceptions. Here are a few:
MediatR
version 7.0.0Lamar.Microsoft.DependencyInjection version 3.1.0
We are using generic constraints. All of the above behaviors implement
IPipelineBehavior<,>
. One thing to note here is that every request should be passing through each behavior. It is odd that sometimes the request makes it through halfway through the pipeline behaviors and sometimes maybe 1/4 of the way through.Any thoughts or insight as to what is going on here? After taking a look at the
RequestHandlerWrapperImpl
code I think that maybe our container is returning something null? Thanks in advance for any help.The text was updated successfully, but these errors were encountered: