libunftp icon indicating copy to clipboard operation
libunftp copied to clipboard

GCS backend error handling

Open robklg opened this issue 5 years ago • 0 comments

The GCS backend should have a generic implementation for handling error responses from the GCS API, safely and consistently. It should also make troubleshooting easy through verbose error logging.

The main concern here is hitting API request count limits, caused by client retries: (causing 429—Too Many Requests)

  1. Error responses should be consistent between commands (permanent vs temporary failures). Retryable error codes should only be send when there is an actual transient error.
  2. Should implement exponential backoff. There is a separate issue for that: https://github.com/bolcom/libunftp/issues/82

Troubleshooting: It should verbosely log these errors, and it should include details retrieved through the HTTP response body (JSON). See GCS status codes.

robklg avatar Nov 01 '19 15:11 robklg