-
Notifications
You must be signed in to change notification settings - Fork 53
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
"Invalid type for parameter ContentType" on uploading Scorm package #16
Comments
regisb
added a commit
to overhangio/edx-platform
that referenced
this issue
Dec 30, 2020
We are affected by this issue: jazzband/django-pipeline#297 (comment) In particular, this occurs when trying to upload js assets to s3, such as with the Scorm xblock: overhangio/openedx-scorm-xblock#16 This issue is resolved by upgrading django-pipeline to 2.0.3+, as the fix was introduced here: jazzband/django-pipeline#715
regisb
added a commit
to overhangio/tutor
that referenced
this issue
Dec 30, 2020
- [Bugfix] Fix "Invalid type for parameter ContentType" error on js upload in Scorm xblock ([openedx-scorm-xblock #16](overhangio/openedx-scorm-xblock#16))
regisb
added a commit
to regisb/edx-platform
that referenced
this issue
Jan 29, 2021
We are affected by this issue: jazzband/django-pipeline#297 (comment) In particular, this occurs when trying to upload js assets to s3, such as with the Scorm xblock: overhangio/openedx-scorm-xblock#16 This issue is resolved by upgrading django-pipeline to 2.0.3+, as the fix was introduced here: jazzband/django-pipeline#715
jmbowman
pushed a commit
to openedx/edx-platform
that referenced
this issue
Feb 1, 2021
) We are affected by this issue: jazzband/django-pipeline#297 (comment) In particular, this occurs when trying to upload js assets to s3, such as with the Scorm xblock: overhangio/openedx-scorm-xblock#16 This issue is resolved by upgrading django-pipeline to 2.0.3+, as the fix was introduced here: jazzband/django-pipeline#715
johanseto
pushed a commit
to eduNEXT/edx-platform
that referenced
this issue
Jun 16, 2022
…nedx#25957) We are affected by this issue: jazzband/django-pipeline#297 (comment) In particular, this occurs when trying to upload js assets to s3, such as with the Scorm xblock: overhangio/openedx-scorm-xblock#16 This issue is resolved by upgrading django-pipeline to 2.0.3+, as the fix was introduced here: jazzband/django-pipeline#715 (cherry picked from commit d89868b)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See discussion: https://discuss.overhang.io/t/issue-with-scorm/1126
The tutor-minio package is enabled. When uploading a Scorm package, I sometimes get the following error:
This is not consistently reproduced. The error occurs in the unzipping step, on js assets.
Further debugging shows that when this error occurs, the
mimetypes.guess_type
function returns abytes
object, and not astr
:This in turns causes s3boto3 request validation to fail.
The
b'text/javascript'
mimetype is introduced by the django-pipeline package: https://github.com/jazzband/django-pipeline/blob/1.7.0/pipeline/conf.py#L80The bug was introduced in this PR: jazzband/django-pipeline#297
It turns out that other people face the exact same bug: jazzband/django-pipeline#297 (comment)
This bug was later fixed in v2.0.3: jazzband/django-pipeline#715
However, edx-platform depends on django-pipeline<2.0.0: https://github.com/edx/edx-platform/blob/open-release/koa.1/requirements/constraints.txt#L26
It looks like this constraint was introduced for compatibility withg python 3.5, but we don't need this anymore in Koa (python 3.8): https://github.com/edx/edx-platform/pull/24056
Thus, the fix would consist in upgrading django-pipeline to 2.0.3+ upstream.
The text was updated successfully, but these errors were encountered: