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

course import error: UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'split' of null #2580

Open
eclass4learning opened this issue Dec 1, 2021 · 3 comments

Comments

@eclass4learning
Copy link

Expected Behaviour

for the course to be properly imported

Actual Behaviour

adapt throws an UnhandledPromiseRejectionWarning
adapt.log

Steps to Reproduce

export course from another server, then import course into another server.

Versions

  • Authoring Tool Version: 0.10.5
  • Framework Version: 5.17.7
  • Node.js Version: 2:14.18
  • MongoDB Version: 4.0.27
  • Operating System: rhel 7 based distro
  • Browser: chrome v96

Screenshot_2021-12-01_09-38-51

@taylortom
Copy link
Member

Hi @eclass4learning, are you able to share the course you were trying to import? If not, it would be very helpful to get some more detailed information about the error - usually there's a stack trace which gives you more details about where the error occurred.

@simondate
Copy link
Member

I recently had this with some courses I was trying to upload. After some playing around I realised the content had some images with the .jfif format. I replaced these with standard images and the error went away and I was able to upload.

@taylortom do you think we should prevent non-standard file formats being uploaded to prevent this sort of error occouring?

@taylortom
Copy link
Member

taylortom commented May 10, 2022

@simondate this isn't something that we've planned to fix in the legacy codebase, but is in v1.0.0 already 😀

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

3 participants