Open ernestorefinepro opened 3 years ago
Hi @ernestorefinepro ,
The cause of this problem is probably the initialization of the project via the RefineProject() class in the delete() function which triggers get_models(). That would be this line in the log:
File "/home/felix/openrefine-client/google/refine/refine.py", line 417, in get_models
You could test if the error does not occur with plain curl. Example for project id 1761702727570:
curl --data project="1761702727570" "http://localhost:3333/command/core/delete-project?csrf_token=$(curl -s http://localhost:3333/command/core/get-csrf-token | cut -d '"' -f 4)"
Is this error an important problem for your use case or did you just want to let me know?
With the curl command, the project can be deleted without issues. For my case, the delete command error is an issue because I am automating the processing of several files with OpenRefine. The error creates some noise in the process.
How to reproduce
EN
.main_project
./openrefine-client --delete 'main_project'
and you will see the following error:Environment details