Skip to content

[Issue #11811] Stop s3 logging GetApplicationZip response - #11813

Merged
jakobpederson merged 2 commits into
mainfrom
jakobpederson/11811-stop-s3-logging-get-application-zip-response
Aug 5, 2026
Merged

[Issue #11811] Stop s3 logging GetApplicationZip response#11813
jakobpederson merged 2 commits into
mainfrom
jakobpederson/11811-stop-s3-logging-get-application-zip-response

Conversation

@jakobpederson

Copy link
Copy Markdown
Collaborator

Summary

Fixes / Work for #11811

Changes proposed

  • Added a check for GetApplicationZipRequest in the write_debug_to_s3 method and if it's true to just put a placeholder message instead of trying to write the response

Context for reviewers

Currently the attempt to write to s3 is throwing an UnicodeDecodeError when trying to write the response to s3:

["<class 'UnicodeDecodeError'>", "'utf-8' codec can't decode byte 0xf1 in position 1592: invalid continuation byte", "<traceback object at 0x7f4d7ce8cb00>"]

So we're currently going to skip on writing it to s3.

Validation steps

  • tests passing
    once deployed
  • errors should stop being logged

@jakobpederson jakobpederson self-assigned this Aug 3, 2026
@jakobpederson jakobpederson linked an issue Aug 3, 2026 that may be closed by this pull request
1 task
@jakobpederson
jakobpederson marked this pull request as ready for review August 3, 2026 19:19
Comment on lines +594 to +598
file_util.write_to_file(
response_s3_path,
"GetApplicationZip response not currently logged",
content_type=text_content_type,
)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why write static content to the file? Should we just log instead?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In a discussion it came down to the static content or the log, I think I just chose the wrong one. I'll update it.

@jakobpederson
jakobpederson requested a review from chouinar August 4, 2026 21:09
@jakobpederson
jakobpederson merged commit 0d218fb into main Aug 5, 2026
11 checks passed
@jakobpederson
jakobpederson deleted the jakobpederson/11811-stop-s3-logging-get-application-zip-response branch August 5, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SOAP/Proxy: stop attempting to s3 log the GetApplicationZip response

2 participants