Closed jonrkarr closed 2 years ago
I will put the correction in biosimulators_utils.biosimulations.utils.submit_project_to_runbiosimulations
.
That looks fine to me. Is there any error message received? I know the Axios library in javascript will simply not execute a request if the multipart/form-data is not constructed properly. Does requests have some sort of object to construct form data with? I think It could be worth using the client library at biosimulations/client to avoid needing to make the request manually.
The request returns a 500 error.
The request looks fine to me too. The must be an issue with the form or JSON encoding.
These requests seemed simple enough to just use the requests package. I can use the client library instead. Can you push it to PyPI?
The Content-Type
header needed to be removed because the requests package sets this. With this set, the boundary between multi-part form elements is incorrect.
@bilalshaikh42 I can't figure out how to use Python to submit simulations programmatically to runBioSimulations. Do you know what's wrong?