We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebfaf9b commit e2be2fbCopy full SHA for e2be2fb
app/controllers/katello/api/registry/registry_proxies_controller.rb
@@ -23,7 +23,19 @@ def repackage_message
23
end
24
25
rescue_from RestClient::Exception do |e|
26
- Rails.logger.error pp_exception(e)
+ # Log BLOB_UNKNOWN errors as info.
27
+ # These 404s occur as part of podman push's blob lookup and should not be reported as errors.
28
+ if e.http_code == 404
29
+ body = JSON.parse(e.http_body) rescue {}
30
+ if body["errors"]&.any? { |error| error["code"] == "BLOB_UNKNOWN" }
31
+ Rails.logger.info pp_exception(e)
32
+ else
33
+ Rails.logger.error pp_exception(e)
34
+ end
35
36
37
38
+
39
if request_from_katello_cli?
40
render json: { errors: [e.http_body] }, status: e.http_code
41
else
0 commit comments