422 : Unprocessable Content for Magnitude message
20220630_UTC_06:11:10 LOGO: <HYPO_RING.INST_INGV.MOD_LOCALMAG_FINAL.TYPE_MAGNITUDE>
20220630_UTC_06:11:10 JSON: {"ewLogo":{"type":"TYPE_MAGNITUDE","module":"MOD_LOCALMAG_FINAL","installation":"INST_INGV","instance":"hew20_mole","user":"ew","hostname":"2d5e7d85bc64"},"ewMessage":{"quakeId":468386,"version":"ew final","originId":4683862,"mag":4.66,"error":0.66,"quality":1.00,"minDist":68.46,"azimuth20220630_UTC_06:11:10 URL-DATA: http://caravel.int.ingv.it:80/api/quakedb/ew/v1/magnitude
20220630_UTC_06:11:10 JSON-DATA: {"data":{"ewLogo":{"type":"TYPE_MAGNITUDE","module":"MOD_LOCALMAG_FINAL","installation":"INST_INGV","instance":"hew20_mole","user":"ew","hostname":"2d5e7d85bc64"},"ewMessage":{"quakeId":468386,"version":"ew final","originId":4683862,"mag":4.66,"error":0.66,"quality":1.00,"minDist":
620220630_UTC_06:11:12 RESPONSE: {"type":"https:\/\/tools.ietf.org\/html\/rfc4918#section-11.2","title":"Unprocessable Content","status":422,"detail":"The given data was invalid.","instance":"http:\/\/caravel.int.ingv.it\/api\/quakedb\/ew\/v1\/magnitude","version":"2.46.0","request_submitted":"2022-06-30T06:06:12
UT20220630_UTC_06:11:12 RESPONSE: es.576.comp":["The 'data.ewMessage.phases.576.comp' must be a string.","The 'data.ewMessage.phases.576.comp' must be exactly 3."],"data.ewMessage.phases.577.comp":["The 'data.ewMessage.phases.577.comp' must be a string.","The 'data.ewMessage.phases.577.comp' must be exactly 3."],"dat20220630_UTC_06:11:12 RESPONSE: ":["The 'data.ewMessage.phases.574.sta' must be a string."],"data.ewMessage.phases.575.sta":["The 'data.ewMessage.phases.575.sta' must be a string."],"data.ewMessage.phases.576.sta":["The 'data.ewMessage.phases.576.sta' must be a string."],"data.ewMessage.phases.577.sta":["The 'data.20220630_UTC_06:11:12 RESPONSE: ta' must be a string."],"data.ewMessage.phases.588.sta":["The 'data.ewMessage.phases.588.sta' must be a string."],"data.ewMessage.phases.589.sta":["The 'data.ewMessage.phases.589.sta' must be a string."],"data.ewMessage.phases.566.net":["The 'data.ewMessage.phases.566.net' must be a 20220630_UTC_06:11:12 Error POST to http://caravel.int.ingv.it:80/api/quakedb/ew/v1/magnitude with http code 422.
20220630_UTC_06:11:12 HTTP CODE: 422
Dipende dal fatto che ew2openapi
inserisce nel messaggio di magnitudo alcuni elementi del tipo:
{
"sta": "",
"comp": "",
"net": "",
"loc": "",
"mag": 0,
"dist": 0,
"corr": 0,
"time1": "1970-01-01T00:00:00.000Z",
"amp1": 0,
"period1": 0,
"time2": "1970-01-01T00:00:00.000Z",
"amp2": 0,
"period2": 0
},