question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote changes not applied on second sync

See original GitHub issue

I am using SQLite localling and syncing to SQLServer over http from Win Forms Classic. The initial database exists locally and is correctly created.

var s1 = await agent.SynchronizeAsync(progress);
await agent.LocalOrchestrator.UpdateUntrackedRowsAsync();
s1 = await agent.SynchronizeAsync(progress);

In an attempt to get more details I added the following interceptor however it is not hit

agent.RemoteOrchestrator.OnDatabaseChangesApplied(args =>
{
    listBox1.Items.Add($"--------------------------------------------");
    listBox1.Items.Add($"Changes applied to the remote database:");
    listBox1.Items.Add($"--------------------------------------------");
    
   listBox1.Items.Add(args.ChangesApplied);
});

I noticed the source is empty in some of my logging (options set to SQL)

50%: [] ChangesApplying HttpGettingResponseMessageArgs: HttpGettingResponseMessageArgs

Is it possible to interrogate the Response Message Args? or am I missing a trick here?

Additionally we have an iOS product with the same code calling the same api which works.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Mimetiscommented, Dec 5, 2022

Did you tried the last beta version 0.9.8 on the server side where I put a lot of details in the error message ?

Let me know if you have something new

0reactions
spj-ukcommented, Dec 5, 2022

Thanks, we have put it to one side now as the .NET Core version worked but we will revisit the Classic .net Winforms example later.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Two remote repositories out of sync (non-fast-forwards error)
A bare repository has no working tree, no checked out branch or commit and therefore nothing to pull into. Note, that a pull...
Read more >
Sync with a remote Git repository (fetch, pull, update)
Find out how to sync your GoLand project with a remote git repository: fetch and pull changes, update a branch or the whole...
Read more >
Git: "Sync changes" Button is always shown when "Commit ...
The main reason behind the change to the "Sync Changes" button was that given that the auto fetch is disabled by default, there...
Read more >
Syncing your branch in GitHub Desktop
You can sync your local branch with the remote repository by pulling any commits that ... To apply changes to your branch from...
Read more >
How to Create and Sync Git and GitHub Repositories
You use that remote repository to create your local repository so you can make and test changes locally. With the two repositories in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found