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

Background initialization needs request data #4

Open
bjester opened this issue Aug 9, 2022 · 0 comments
Open

Background initialization needs request data #4

bjester opened this issue Aug 9, 2022 · 0 comments

Comments

@bjester
Copy link
Member

bjester commented Aug 9, 2022

The background initialization setting doesn't yet work, as core morango operations attempt to access the request object which doesn't exist.

ERROR    Job 424f40644e684ceeb8a2997992544b1b raised an exception: Traceback (most recent call last):
  File "/home/bjester/Projects/learningequality/pyenv/versions/3.8.10/envs/kdp-3.8.10/lib/python3.8/site-packages/kolibri/dist/morango/sync/controller.py", line 248, in _invoke_middleware
    result = middleware(prepared_context)
  File "/home/bjester/Projects/learningequality/pyenv/versions/3.8.10/envs/kdp-3.8.10/lib/python3.8/site-packages/kolibri/dist/morango/registry.py", line 228, in __call__
    result = operation(context)
  File "/home/bjester/Projects/learningequality/pyenv/versions/3.8.10/envs/kdp-3.8.10/lib/python3.8/site-packages/kolibri/dist/morango/sync/operations.py", line 942, in __call__
    result = self.handle(context)
  File "/home/bjester/Projects/learningequality/pyenv/versions/3.8.10/envs/kdp-3.8.10/lib/python3.8/site-packages/kolibri/dist/morango/sync/operations.py", line 1067, in handle
    context.transfer_session.client_fsic = context.request.data.get(
AttributeError: 'NoneType' object has no attribute 'data'
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