DiamondLightSource/SynchWeb

Reprocessing - `POST` to `api/process/sweeps` fails

Closed this issue · 1 comments

A POST to api/process looks to work correctly.

Request: {"DATACOLLECTIONID":"6037520","DISPLAYNAME":"Xia2 3dii","RECIPE":"xia2-3dii","prop":"mx21035"}
Response: {"PROCESSINGJOBID": 80}

However, the subsequent POST to api/process/sweeps fails.

Request: [{"PROCESSINGJOBID":80,"DATACOLLECTIONID":"6037520","STARTIMAGE":1,"ENDIMAGE":3600,"prop":"mx21035"}]
Response: {"status":400,"message":"No processing job specified"}

So either something is wrong with the format of the Request? Maybe the extra square brackets? Or maybe something else is happening in the php code on the SynchWeb server that is not properly parsing the response and adding a new sweep of data for reprocessing.

Any help in debugging this would be greatly appreciated.

Well I believe this is mainly because I ignored all advice and attempted to use PHP 7.3/7.4

I have sadly and reluctantly downgraded to 5.6.40 and now am getting a bit further.

Closing for now.