Actions
Bug #37380
closedContainer push can fail with a different JSON error
Description
In http_resource.rb, there's the following code:
def issue_request(method:, path:, headers: {}, payload: nil)
logger.debug("Resource #{method.upcase} request: #{path}")
logger.debug "Headers: #{headers.to_json}"
begin
logger.debug "Body: #{filter_sensitive_data(payload.to_json)}"
rescue JSON::GeneratorError
logger.debug "Body: Error: could not render payload as json"
end
The last logger.debug might cause an Encoding::UndefinedConversionError error instead of a JSON::GeneratorError.
Actions