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

Manual sync process failing #5614

Closed
benjaoming opened this issue Nov 3, 2019 · 0 comments
Closed

Manual sync process failing #5614

benjaoming opened this issue Nov 3, 2019 · 0 comments

Comments

@benjaoming
Copy link
Contributor

Summary

Using staging server.

Either of these two has to be the case:

  1. Success of automatic period sync is wrong?
  2. Failure of manual sync is wrong?
  3. Failure of manual sync is true? (but no server errors recorded!)

image

System information

Please specify the KA Lite version you were using and your operating system!

  • Operating system: Linux
  • Version: 0.17.6b7
  • Browser: FF

Traceback or relevant snippet from server.log

 There was an error during the last sync hide details
Checking purgatory for unsaved models...
Purgatory is model-free! Congrats!
Initiating SyncSession...
Syncing models...
No JSON object could be decoded


Traceback (most recent call last):

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/fle_utils/chronograph/models.py", line 208, in run_management_command
call_command(self.command, *args, **options)

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/management/__init__.py", line 161, in call_command
return klass.execute(*args, **defaults)

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/django/core/management/base.py", line 263, in execute
output = self.handle(*args, **options)

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/securesync/management/commands/syncmodels.py", line 62, in handle
results = client.sync_models()

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/securesync/engine/api_client.py", line 251, in sync_models
counters_to_download, counters_to_upload = self.sync_device_records()

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/securesync/engine/api_client.py", line 161, in sync_device_records
server_counters = self.get_server_device_counters()

File "/usr/lib/python2.7/dist-packages/kalite/packages/bundled/securesync/engine/api_client.py", line 148, in get_server_device_counters
data = json.loads(r.content or "{}")

File "/usr/lib/python2.7/json/__init__.py", line 339, in loads
return _default_decoder.decode(s)

File "/usr/lib/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())

File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")

ValueError: No JSON object could be decoded
benjaoming pushed a commit to benjaoming/ka-lite that referenced this issue Nov 8, 2019
@benjaoming benjaoming mentioned this issue Nov 8, 2019
2 tasks
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

1 participant