Manuscript upload hangs
When uploading a .docx manuscript, the upload spinner goes around forever and no submission is created. From Jure (2020-03-19):
"I've rebuilt job-xsweet
images and updated their versions (1.5.0) in the relevant places in Kotahi - job-xsweet
now runs without errors. However there seems to be something wrong with the upload manuscript button and I haven't been able to figure out what it is - this is going to sound silly, but it looks like the code in the relevant try { } catch { }
isn't executing (even though the code immediately above it does): https://gitlab.coko.foundation/kotahi/kotahi/-/blob/main/app/components/component-submit/src/upload.js#L213-253 I've tried debugging it but I'm out of ideas, the breakpoints in there never fire. This definitely worked when I left, as it's part of the demo flow, so it should be possible to diff current main
vs then...
The next thing I wanted to try was to remove any sort of async babel magic (async and await are transformed using regenerator runtime, which can be hard to debug), and debug the less transpiled code.
I'll try to figure it out on my own time, but as it stands, it's Friday night and my short time with you is over."