World is now on Opti ID! Learn more
World is now on Opti ID! Learn more
at Microsoft.AspNetCore.WebUtilities.MultipartReaderStream.<ReadAsync>d__38.MoveNext()
at System.Threading.Tasks.ValueTask`1.get_Result()
at System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()
at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.<DrainAsync>d__3.MoveNext()
at Microsoft.AspNetCore.WebUtilities.MultipartReader.<ReadNextSectionAsync>d__20.MoveNext()
at Microsoft.AspNetCore.Http.Features.FormFeature.<InnerReadFormAsync>d__24.MoveNext()
at Microsoft.AspNetCore.Http.Features.FormFeature.ReadForm()
at Klaranatet.Web.Core.Infrastructure.EpiServerForms.SubmissionActors.SendEmailAfterSubmissionActor.SendMessage(EmailTemplateActorModel emailTemplateActorModel) in C:\Users\Utv2\Projects\Klaranatet.Web\Klaranatet.Web.Core\Infrastructure\EpiServerForms\SubmissionActors\SendEmailAfterSubmissionActor.cs:line 120
Hi Krisoffer,
It's a known bug of Opti form.
A temporary workaround is your actor need to implement ISyncOrderedSubmissionActor
and set the IsSyncedWithSubmissionProcess to true.
public class SendEmailAfterSubmissionActor: EPiServer.Forms.Implementation.Actors.SendEmailAfterSubmissionActor
{
..........
public override bool IsSyncedWithSubmissionProcess => true;
}
I know that, when implementing the ISyncOrderedSubmissionActor
, the actors will run as synchronously instead of Async. But it is the only temporary solution while waiting for the issue to be fixed.
We have the same problem. Does anyone know when this will be solved from Optimizely?
A know bug since more than two months, it should be solved but maybe it isn't? Have you upgraded to latest version?
Yes latest is 5.10.4 on Forms so no update so far...
Another fun fact is that someone made me end up on the integration environment for World https://inte.world.optimizely.com/forum/developer-forum/cms-12/thread-container/2025/1/error-in-sendemailaftersubmissionactor-when-accessing-httprequestcontext/ Did not know this was possible :) So replyed twice on this post..
Hi!
After upgrade to .net 9 and CMS 12.32.2 we get an error when we are trying to read the HttpRequestContext. Forms are version 5.10.2
This is the code:
And it gives me this error
Unexpected end of Stream, the content may have already been read by another component
I can watch the object in debug mode and Form is null, since it is a post I guess there should be a form available?
Does any know why this is happening?
Thanks!
/Kristoffer