Exception: Aws::Errors::MissingContentLength

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aws-sdk-core/errors.rb

Overview

Raised when a `streaming` operation has `requiresLength` trait enabled but request payload size/length cannot be calculated

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ MissingContentLength

Returns a new instance of MissingContentLength.


65
66
67
68
# File 'lib/aws-sdk-core/errors.rb', line 65

def initialize(*args)
  msg = 'Required `Content-Length` value missing for the request.'
  super(msg)
end