Closed jansule closed 7 years ago
found the error. it happens, when you try to ship with non-existing compendium id. working on a fix.
could you please look into the db if there is an entry for your compendium id? would be useful for me to know this. If you dont mind, please also include the request you sent to the server.
The compendium id exists in the db. (Otherwise I also wouldn't be able to reach the page from where the shipment is triggered).
Here is my request to the server:
api endpoint: POST http://localhost/api/v1/shipment
with following body
{
"compendium_id":"4N4wo",
"recipient":"zenodo_sandbox"
}
and following config
{
"headers": {
"Content-Type": "multipart/form-data"
}
}
please try again with current build.
Tried with current build but error still exists. See this commit to reproduce error.
Has already been resolved by one of the latest commits.
When making a new shipment, the server responds with a
500 - Internal Server Error
. The detailed error message is:TypeError("argument of type 'NoneType' is not iterable")
and furtherFile "shipper.py", line 253, in shipment_post_new if 'candidate' in current_compendium:TypeError: argument of type 'NoneType' is not iterable
.See the complete error log in the following: