Document some errors, bump v1.10.7

This commit is contained in:
Lonami Exo 2019-10-27 18:50:08 +01:00
parent 0a8103b6e8
commit baacecadc5
4 changed files with 4 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class Connection(abc.ABC):
try:
await self._writer.wait_closed()
except Exception as e:
# Seen OSError: No route to host
# Seen OSError: No route to host and [Errno 32] Broken pipe
# Disconnecting should never raise
self._log.warning('Unhandled %s on disconnect: %s', type(e), e)

View File

@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.10.6'
__version__ = '1.10.7'

View File

@ -96,6 +96,7 @@ FILE_PART_0_MISSING,,File part 0 missing
FILE_PART_EMPTY,400,The provided file part is empty
FILE_PART_INVALID,400,The file part number is invalid
FILE_PART_LENGTH_INVALID,400,The length of a file part is invalid
FILE_PART_SIZE_CHANGED,400,The file part size (chunk size) cannot change during upload
FILE_PART_SIZE_INVALID,400,The provided file part size is invalid
FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage
FILEREF_UPGRADE_NEEDED,406,The file reference needs to be refreshed before being used again

1 name codes description
96 FILE_PART_EMPTY 400 The provided file part is empty
97 FILE_PART_INVALID 400 The file part number is invalid
98 FILE_PART_LENGTH_INVALID 400 The length of a file part is invalid
99 FILE_PART_SIZE_CHANGED 400 The file part size (chunk size) cannot change during upload
100 FILE_PART_SIZE_INVALID 400 The provided file part size is invalid
101 FILE_PART_X_MISSING 400 Part {which} of the file is missing from storage
102 FILEREF_UPGRADE_NEEDED 406 The file reference needs to be refreshed before being used again

View File

@ -293,7 +293,7 @@ upload.getFile,both,AUTH_KEY_PERM_EMPTY FILE_ID_INVALID INPUT_FETCH_FAIL LIMIT_I
upload.getFileHashes,both,
upload.getWebFile,user,LOCATION_INVALID
upload.reuploadCdnFile,both,RSA_DECRYPT_FAILED
upload.saveBigFilePart,both,FILE_PARTS_INVALID FILE_PART_EMPTY FILE_PART_INVALID FILE_PART_SIZE_INVALID Timeout
upload.saveBigFilePart,both,FILE_PARTS_INVALID FILE_PART_EMPTY FILE_PART_INVALID FILE_PART_SIZE_CHANGED FILE_PART_SIZE_INVALID Timeout
upload.saveFilePart,both,FILE_PART_EMPTY FILE_PART_INVALID INPUT_FETCH_FAIL SESSION_PASSWORD_NEEDED
users.getFullUser,both,Timeout USER_ID_INVALID
users.getUsers,both,AUTH_KEY_PERM_EMPTY MEMBER_NO_LOCATION NEED_MEMBER_INVALID SESSION_PASSWORD_NEEDED Timeout

1 method usability errors
293 upload.getFileHashes both
294 upload.getWebFile user LOCATION_INVALID
295 upload.reuploadCdnFile both RSA_DECRYPT_FAILED
296 upload.saveBigFilePart both FILE_PARTS_INVALID FILE_PART_EMPTY FILE_PART_INVALID FILE_PART_SIZE_INVALID Timeout FILE_PARTS_INVALID FILE_PART_EMPTY FILE_PART_INVALID FILE_PART_SIZE_CHANGED FILE_PART_SIZE_INVALID Timeout
297 upload.saveFilePart both FILE_PART_EMPTY FILE_PART_INVALID INPUT_FETCH_FAIL SESSION_PASSWORD_NEEDED
298 users.getFullUser both Timeout USER_ID_INVALID
299 users.getUsers both AUTH_KEY_PERM_EMPTY MEMBER_NO_LOCATION NEED_MEMBER_INVALID SESSION_PASSWORD_NEEDED Timeout