Skip to content
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

Sync Fails: 400 Bad Request #95

Closed
yurividal opened this issue Sep 7, 2022 · 2 comments
Closed

Sync Fails: 400 Bad Request #95

yurividal opened this issue Sep 7, 2022 · 2 comments

Comments

@yurividal
Copy link

Describe the bug
Sync fails. Used to work fine.

2022-09-07T06:30:10.394Z	ERROR	sync	sync/sync.go:240	Error syncing clients	{"from": "10.10.10.2:8081", "to": "10.10.10.5:8081", "error": "400 Bad Request"}
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).syncTo
	/go/src/app/pkg/sync/sync.go:240
github.com/bakito/adguardhome-sync/pkg/sync.(*worker).sync
	/go/src/app/pkg/sync/sync.go:179
github.com/bakito/adguardhome-sync/pkg/sync.Sync.func2
	/go/src/app/pkg/sync/sync.go:44
github.com/robfig/cron/v3.FuncJob.Run
	/go/pkg/mod/github.com/robfig/cron/v3@v3.0.1/cron.go:136
github.com/robfig/cron/v3.(*Cron).startJob.func1

To Reproduce
Steps to reproduce the behavior:

  1. What version of AdGuardHome sync used? Latest docker version
  2. What version of AdGuardHome us used? Version: v0.107.11
@yurividal
Copy link
Author

Ok, this happened when I renamed one of the Persistent clients on the first AGH. Seems like the sync is unable to rename the client on the second AGH. I solved it by removing the persistent client from both instances, and then adding it again on the AGH1.

This should be looked into, since the expected behaviour would be to rename the client on the second instance too.

@bakito bakito closed this as completed in f6b6c7d Sep 7, 2022
bakito added a commit that referenced this issue Sep 7, 2022
@bakito
Copy link
Owner

bakito commented Sep 7, 2022

Hi @yurividal

Thank you for reporting the error. I could reproduce and fix it.
The fix will be available in https://github.com/bakito/adguardhome-sync/releases/tag/v0.4.6 once the builds are done.

Cheers Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants