Closed roywilly closed 6 months ago
Uploader PR: https://github.com/equinor/fmu-sumo-uploader/pull/49
Sumo-core PR: https://github.com/equinor/sumo-core-nodejs/pull/327
Decided to not improve the following message since it is from middleware (express.json) and it would get too complicated; { "message": "Unexpected token 'x', \"#\" is not valid JSON" }
Example, when invalid metadata, this is returned by the uploader:
The actual error is that the entire
fmu
block is missing from the metadata.A minimum error message here would be "invalid metadata".
Also, there is misleading information in the summary:
It says 3 files have "failed", while the correct should be "rejected". I assume this is domino-effect from Sumo given
500
instead of some other code.