learningequality / ka-lite

KA Lite: lightweight web server for serving core Khan Academy content (videos and exercises) without needing internet connectivity
https://learningequality.org/ka-lite/
Other
458 stars 305 forks source link

Manual sync process failing #5614

Closed benjaoming closed 4 years ago

benjaoming commented 4 years ago

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!

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