S3 / Client / exceptions / InvalidRequest

InvalidRequest#

class S3.Client.exceptions.InvalidRequest#

You may receive this error in multiple cases. Depending on the reason for the error, you may receive one of the messages below:

  • Cannot specify both a write offset value and user-defined object metadata for existing objects.

  • Checksum Type mismatch occurred, expected checksum Type: sha1, actual checksum Type: crc32c.

  • Request body cannot be empty when ‘write offset’ is specified.

Example

try:
  ...
except client.exceptions.InvalidRequest as e:
  print(e.response)
response#

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{}

Structure

  • (dict) –

    You may receive this error in multiple cases. Depending on the reason for the error, you may receive one of the messages below:

    • Cannot specify both a write offset value and user-defined object metadata for existing objects.

    • Checksum Type mismatch occurred, expected checksum Type: sha1, actual checksum Type: crc32c.

    • Request body cannot be empty when ‘write offset’ is specified.

    • Error (dict) – Normalized access to common exception attributes.

      • Code (string) – An identifier specifying the exception type.

      • Message (string) – A descriptive message explaining why the exception occured.