Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Uploader): Handle HTML Errors during upload #3176

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Jan 27, 2025

What is this pull request for?

If the upload fails because of Proxy errors (502, etc.) we cannot parse the html as json. We should display the actual error to the user, so they can report accordingly.

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

If the upload fails because of Proxy errors (502, etc.)
we cannot parse the html as json. We should display the
actual error to the user, so they can report accordingly.
@tvdeyen tvdeyen requested a review from a team as a code owner January 27, 2025 13:00
@tvdeyen tvdeyen added this to the 7.4 milestone Jan 27, 2025
@tvdeyen tvdeyen added the backport-to-7.4-stable Needs to be backported to 7.4-stable label Jan 27, 2025
@tvdeyen tvdeyen enabled auto-merge January 27, 2025 13:01
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.58%. Comparing base (45de21c) to head (266ca1e).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3176   +/-   ##
=======================================
  Coverage   96.58%   96.58%           
=======================================
  Files         236      236           
  Lines        6360     6360           
=======================================
  Hits         6143     6143           
  Misses        217      217           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@tvdeyen tvdeyen merged commit eeb8502 into AlchemyCMS:main Jan 27, 2025
55 checks passed
@tvdeyen tvdeyen deleted the uploader-handle-html-errors branch January 27, 2025 13:50
@alchemycms-bot
Copy link
Collaborator

💚 All backports created successfully

Status Branch Result
7.4-stable

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-to-7.4-stable Needs to be backported to 7.4-stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants