From b9b59329d529c9be31399edf8f4e5c391275a14e Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 9 Jan 2022 15:43:51 +0000 Subject: [PATCH] Gateway/errors: Document 'Malformed Upload' error --- schemas/README-EDDN-schemas.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/schemas/README-EDDN-schemas.md b/schemas/README-EDDN-schemas.md index 388a498..c731ec4 100644 --- a/schemas/README-EDDN-schemas.md +++ b/schemas/README-EDDN-schemas.md @@ -315,20 +315,24 @@ make a valid request" responses you might experience the following: 1. `FAIL: zlib.error: ` - A failure to decompress a message that claimed to be compressed. - 2. `FAIL: JSON parsing: ` - the + 2. `FAIL: Malformed Upload: ` - the message looked to be + form-encoded, but either the format was bad or there was no `data` + key. + + 3. `FAIL: JSON parsing: ` - the request couldn't be parsed as valid JSON. e.g. ``` FAIL: JSON parsing: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) ``` - 3. `FAIL: ["]` - the JSON + 4. `FAIL: ["]` - the JSON message failed to pass schema validation. e.g. ``` FAIL: [] ``` - 4. Other python exception message, e.g. if a message appeared to be + 5. Other python exception message, e.g. if a message appeared to be gzip compressed, but a failure was experienced when attempting to decompress it. **NB: As of 2022-07-01 such messages won't have the `FAIL: ` prefix.** See