openedx / openedx/xblock-sdk

Issue with xblock-lti-consumer==2.7.4

Open
#199 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
70
Forks
104
Avg merge
17h 46m
Merged PRs (30d)
14

Description

Cannot unpack non-iterable Mock() object

Issue happens with this xblock https://github.com/edx/xblock-lti-consumer
version 2.7.4. For older version 1.2.1 everything works correctly.

Problem in this line:

https://github.com/edx/xblock-sdk/blob/744a4e2c35222f1c03cc5729e1bc5ea56e828376/workbench/runtime.py#L300

as it is expects UsageKey

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with workbench/runtime.py at line 300 and reproduce the "Cannot unpack non-iterable Mock() object" failure using xblock-lti-consumer 2.7.4. Compare the behavior with version 1.2.1 and inspect how the UsageKey is expected to be handled. Done means the failing integration works with 2.7.4 without regressing the older version.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.