Error 500 when PUT /parcel
Reported by @gaonach
curl 'http://localhost:8000/tracking/-----/investigation/id/123756121/shipment/id/64915cfefac0bb3bf583579c/parcel' \
-X 'PUT' \
-H 'Accept: */*' \
-H 'Accept-Language: en,en-US;q=0.9,en-GB;q=0.8,fr;q=0.7' \
-H 'Cache-Control: no-cache' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/json' \
-H 'Origin: http://localhost:3000' \
-H 'Pragma: no-cache' \
-H 'Referer: http://localhost:3000/' \
-H 'Sec-Fetch-Dest: empty' \
-H 'Sec-Fetch-Mode: cors' \
-H 'Sec-Fetch-Site: same-site' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36' \
-H 'sec-ch-ua: "Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"' \
-H 'sec-ch-ua-mobile: ?0' \
-H 'sec-ch-ua-platform: "Linux"' \
--data-raw '{"type":"DEFAULT","localContactNames":[],"items":[],"_id":"64915d04fac0bb3bf58357a1","investigationId":123756121,"investigationName":"ID000010","shipmentId":"64915cfefac0bb3bf583579c","name":"test","description":"","storageConditions":"At room temperature","comments":"","shippingAddress":{"status":"ACTIVE","_id":"64915cf5fac0bb3bf583579b","createdBy":"demariaa/255362","investigationName":"ID000010","investigationId":123756121,"name":"dfghf","surname":"dfgh","email":"dfgh","phoneNumber":"4645","address":"dfghfdh","companyName":"","postalCode":"456","city":"dfgh","country":"dfgh","createdAt":"2023-06-22T12:17:37.245Z","updatedAt":"2023-06-22T12:17:37.245Z","id":"64915cf5fac0bb3bf583579b"},"returnAddress":{"status":"ACTIVE","_id":"64915d04fac0bb3bf58357a3","createdBy":"demariaa/255362","investigationName":"ID000010","investigationId":123756121,"name":"dfghf","surname":"dfgh","email":"dfgh","phoneNumber":"4645","address":"dfghfdh","companyName":"","postalCode":"456","city":"dfgh","country":"dfgh","createdAt":"2023-06-22T12:17:37.245Z","updatedAt":"2023-06-22T12:17:37.245Z","id":"64915d04fac0bb3bf58357a3"},"statuses":[{"status":"CREATED","_id":"64915d04fac0bb3bf58357a4","createdBy":"demariaa/255362","createdAt":"2023-06-20T08:02:12.411Z","updatedAt":"2023-06-20T08:02:12.411Z","createdByFullName":"Alejandro DE MARIA","createdByEmail":"demariaa@esrf.fr","id":"64915d04fac0bb3bf58357a4"},{"status":"SCHEDULED","_id":"64915d04fac0bb3bf58357a5","createdBy":"demariaa/255362","createdAt":"2023-06-20T08:02:12.411Z","updatedAt":"2023-06-20T08:02:12.411Z","createdByFullName":"Alejandro DE MARIA","createdByEmail":"demariaa@esrf.fr","id":"64915d04fac0bb3bf58357a5"},{"status":"READY","_id":"6494043bae235c69d1e2f402","createdBy":"gaonach/301346","updatedAt":"2023-06-22T08:20:11.891Z","createdAt":"2023-06-22T08:20:11.891Z","createdByFullName":"Mael Gaonach","createdByEmail":"mael.gaonach@esrf.fr","id":"6494043bae235c69d1e2f402"},{"status":"SCHEDULED","_id":"64943b15ae235c69d1e2f461","createdBy":"admin","updatedAt":"2023-06-22T12:14:13.892Z","createdAt":"2023-06-22T12:14:13.892Z","createdByFullName":"adminFullName","id":"64943b15ae235c69d1e2f461"}],"currentStatus":"SCHEDULED","content":[{"type":"CONTAINER","containerType":{"name":"SPINEPUCK","capacity":10},"name":"s","content":[{"type":"TOOL","name":"a","description":"a","comments":"a","experimentPlan":[{"key":"High_Resoluton_Cutoff_Criteria","value":"[{\"HighResolutionCutoffIsotropic\":\"True\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"},{\"HighResolutionCutoffIsotropic\":\"False\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"}]"},{"key":"unit_cell_a","value":"a"},{"key":"unit_cell_b","value":"a"},{"key":"unit_cell_c","value":"a"},{"key":"unit_cell_alpha","value":"a"},{"key":"unit_cell_beta","value":"a"},{"key":"unit_cell_gamma","value":"b"},{"key":"aimed_resolution","value":"a"},{"key":"required_resolution","value":"a"},{"key":"beam_diameter","value":"a"},{"key":"number_positions","value":"a"},{"key":"aimed_multiplicity","value":"a"},{"key":"aimed_completeness","value":"a"},{"key":"radiation_sensivity","value":"a"},{"key":"smiles","value":"a"},{"key":"total_rotation_angle","value":"a"},{"key":"min_osc_angle","value":"a"}],"processingPlan":[{"key":"pipeline","value":"edna_proc"}],"sampleContainerPosition":"1"}]},{"type":"CONTAINER","containerType":{"name":"UNIPUCK","capacity":16},"name":"v","content":[{"type":"OTHER","name":"b","comments":"a","experimentPlan":[{"key":"High_Resoluton_Cutoff_Criteria","value":"[{\"HighResolutionCutoffIsotropic\":\"True\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"},{\"HighResolutionCutoffIsotropic\":\"False\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"}]"}],"processingPlan":[{"key":"pipeline","value":"edna_proc"}],"sampleContainerPosition":"1"},{"type":"TOOL","name":"c","comments":"b","experimentPlan":[{"key":"High_Resoluton_Cutoff_Criteria","value":"[{\"HighResolutionCutoffIsotropic\":\"True\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"},{\"HighResolutionCutoffIsotropic\":\"False\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"},{\"HighResolutionCutoffIsotropic\":\"True\",\"HighResolutionCutoffCriterion\":\"I/sigI\",\"HighResolutionCutoffLowThreshold\":\"1\"}]"}],"processingPlan":[{"key":"pipeline","value":"edna_proc"}],"sampleContainerPosition":"2"},{"type":"SAMPLESHEET","name":"d","comments":"c","sampleId":123936045,"experimentPlan":[{"key":"High_Resoluton_Cutoff_Criteria","value":"[{\"HighResolutionCutoffIsotropic\":\"True\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"},{\"HighResolutionCutoffIsotropic\":\"False\",\"HighResolutionCutoffCriterion\":\"CC0.5\",\"HighResolutionCutoffLowThreshold\":\"1\",\"HighResolutionCutoffHighThreshold\":\"2\"},{\"HighResolutionCutoffIsotropic\":\"True\",\"HighResolutionCutoffCriterion\":\"I/sigI\",\"HighResolutionCutoffLowThreshold\":\"1\"}]"},{"key":"workflowType","value":"MXPressE"},{"key":"forceSpaceGroup","value":"True"}],"processingPlan":[{"key":"pipeline","value":"grenades"}],"sampleContainerPosition":"3"},{"type":"SAMPLESHEET","name":"d1","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"4"},{"type":"SAMPLESHEET","name":"d2","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"5"},{"type":"SAMPLESHEET","name":"d3","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"6"},{"type":"SAMPLESHEET","name":"d4","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"7"},{"type":"SAMPLESHEET","name":"d5","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"8"},{"type":"SAMPLESHEET","name":"d6","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"9"},{"type":"SAMPLESHEET","name":"d6","comments":"c","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"10"},{"type":"SAMPLESHEET","name":"d6","sampleId":123925761,"experimentPlan":[],"processingPlan":[],"sampleContainerPosition":"11"}]}],"createdAt":"2023-06-20T08:02:12.411Z","updatedAt":"2023-06-22T12:17:37.245Z","__v":0,"containsDangerousGoods":false,"status":"SCHEDULED","investigation":{"name":"ID000010","startDate":"2020-01-15T10:48:11.863+01:00","id":123756121,"title":"ID000010","visitId":"id00","summary":"Sample tracking Software Developments ","parameters":{"__datasetCount":"12","__sampleCount":"11","__fileCount":"69","__volume":"551296007","__elapsedTime":"0","__acquisitionDatasetCount":"5","__processedDatasetCount":"7","__acquisitionFileCount":"20","__processedFileCount":"49","__acquisitionVolume":"397436514","__processedVolume":"153859493"},"instrument":{"name":"ID30A-1","id":13168152},"investigationUsers":[],"meta":{"page":{"totalWithoutFilters":1650,"total":1650,"totalPages":1,"currentPage":1}},"type":{"id":92177680,"createId":"255362","createTime":"2018-03-29T14:30:24.233+02:00","modId":"255362","modTime":"2018-03-29T14:30:24.233+02:00","description":"Testing Investigation Type","investigations":[],"name":"ID00"}},"localContactFullnames":[],"id":"64915d04fac0bb3bf58357a1","meta":{"page":{"total":1,"totalPages":1,"currentPage":1}}}' \
--compressed