Unable to push more than one table at a time #335
Labels
Awaiting Response
Awaiting response from the OP
Client
Improvements or additions to the client code
stale
Stale issue or PR.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I am trying to push the pending changes in all tables. Unfortunately i am getting below exception.Please find below code snippet and exception details.
Code snippet:
exception details :
System.InvalidOperationException: This instance has already started one or more requests. Properties can only be modified before sending the first request.
at System.Net.Http.DelegatingHandler.CheckDisposedOrStarted()
2025-04-22 18:04:50.317054+0530 ClientApp[23038:480165] at System.Net.Http.DelegatingHandler.set_InnerHandler(HttpMessageHandler value)
at CommunityToolkit.Datasync.Client.Http.HttpClientFactory.CreatePipeline(IEnumerable
1 handlers) at CommunityToolkit.Datasync.Client.Http.HttpClientFactory.GenerateClient() 2025-04-22 18:04:50.317163+0530 ClientApp[23038:480165] at CommunityToolkit.Datasync.Client.Http.HttpClientFactory.CreateClient(String name) at CommunityToolkit.Datasync.Client.Offline.Models.OfflineOptions.GetOptions(Type entityType) 2025-04-22 18:04:50.317293+0530 ClientApp[23038:480165] at CommunityToolkit.Datasync.Client.Offline.OperationsQueue.OperationsQueueManager.PushOperationAsync(DatasyncOperation operation, CancellationToken cancellationToken) at CommunityToolkit.Datasync.Client.Offline.OperationsQueue.OperationsQueueManager.<>c__DisplayClass20_0.<<PushAsync>b__1>d.MoveNext() 2025-04-22 18:04:50.317398+0530 ClientApp[23038:480165] --- End of stack trace from previous location --- at CommunityToolkit.Datasync.Client.Offline.OperationsQueue.OperationsQueueManager.PushAsync(IEnumerable
1 entityTypes, PushOptions pushOptions, CancellationToken cancellationToken)2025-04-22 18:04:50.317543+0530 ClientApp[23038:480165] at ClientApp.Data.Services.DataSyncService`1.d__20[[ClientApp.Data.Models.ConstructionDto, ClientApp.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].MoveNext() in /Users/sateesh/Documents/Projects/Inspection_new/ClientApp.Data/Services/DataSyncService.cs:line 409
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: