Closed MehmedGIT closed 1 year ago
Hi, I can confirm that it cannot be produced locally. What I tried was just starting up the webapi locally from command line and mongodb and rabbitmq in docker. Then I used the post-workspace-endpoint to push the example-workflow: curl -X POST http://localhost:8000/workspace -H 'content-type: multipart/form-data' -F workspace=@example_ws.ocrd.zip
. That worked without a problem.
It was resolved in version v0.8.3. The problem was that the OcrdZipValidator's validate() method uses 2 processes for validation by default. This seems problematic from the uvicorn's perspective.
There is some silent error on the post workspace method that kills the entire server inside the live VM instance.
This is surprising because, on my local machine, it seems to work just fine. I think it's time to put more effort into the robustness of the WebAPI and start better logging to detect errors.