uSync error

Just trying to do a simple content push from one environment to another. Running Umbraco v13.9.2, uSync Complete 13.1.10, in a Windows Azure environment. Receive the following error:

Error while processing Push - (export/Push/0/)

Anyone seen this or have any advice?

More detail:

Upload fail: ec708f95-c705-40c6-957b-26167e0e159d - {"code":500,"message":"Unexpected end of Stream, the content may have already been read by another component. ","exceptionMessage":"System.IO.IOException: Unexpected end of Stream, the content may have already been read by another component. \r\n   
at Microsoft.AspNetCore.WebUtilities.MultipartReaderStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)\r\n   
at Microsoft.AspNetCore.WebUtilities.StreamHelperExtensions.DrainAsync(Stream stream, ArrayPool`1 bytePool, Nullable`1 limit, CancellationToken cancellationToken)\r\n   
at Microsoft.AspNetCore.WebUtilities.MultipartReader.ReadNextSectionAsync(CancellationToken cancellationToken)\r\n   
at uSync.Publisher.Controllers.uSyncReceiveApiController.GetFileFromRequest(String folder)\r\n   
at uSync.Publisher.Controllers.uSyncReceiveApiController.GetFileFromRequest(Boolean allowBlankGuid)\r\n   at uSync.Publisher.Controllers.uSyncReceiveApiController.PushPack()\r\n   
at lambda_method207904(Closure, Object)\r\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)\r\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)\r\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)\r\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)\r\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()\r\n--- End of stack trace from previous location ---\r\n   
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)"}
    at uSync.Publisher.Publishers.SyncPublisherBase.UploadFile(String url, Stream stream, uSyncCallbacks callbacks)
   at uSync.Publisher.Publishers.SyncRealtimePublisher.PushToServer(PublisherActionRequest request)
   at uSync.Publisher.Services.SyncPublisherActionService.PerformAction(PublisherActionRequest request, ISyncPublisher publisher, IUser user)

Hi,

I would check to see if you have any custom middleware in your process.

there was an issue (which we patched quite a few versions ago) which was traced back to how the umbraco and uSync middleware interacted,

For uSync requests the content buffering is turned on (so we can work around other bits of code altering the streams), but sometimes custom middleware can move it around again and cause this issue.

Kevin

Turns out that one of the environments I was syncing to/from had not been fully updated. Since the update happened all around, I have had no issues.

Sorry for all the trouble!

HI,

can you share some of the details as to what you had to update ? we’ve had a couple of reports like this, and just want to be able to point people to possible things to look at.

Kevin

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.