-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 Response.text when body is Payload #6485
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## master #6485 +/- ##
==========================================
+ Coverage 98.25% 98.26% +0.01%
==========================================
Files 107 107
Lines 34125 34178 +53
Branches 4048 4054 +6
==========================================
+ Hits 33530 33586 +56
+ Misses 421 418 -3
Partials 174 174
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
|
I swear a lot of these Payloads are overlapping and half of them could be removed... |
for more information, see https://pre-commit.ci
Backport to 3.10: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 9418a4a on top of patchback/backports/3.10/9418a4a1486beed0ae8a5c47277ecd67758eb5e2/pr-6485 Backporting merged PR #6485 into master
🤖 @patchback |
Backport to 3.11: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 9418a4a on top of patchback/backports/3.11/9418a4a1486beed0ae8a5c47277ecd67758eb5e2/pr-6485 Backporting merged PR #6485 into master
🤖 @patchback |
(cherry picked from commit 9418a4a)
(cherry picked from commit 9418a4a)
In aiohttp 3.10.6 aio-libs/aiohttp#6485 a new abstract method was implemented in aiohttp.Payload. So trying to instantiate the AsyncNamedFilePart class fails and causes the push command to fail: ``` File "/usr/sbin/flat-manager-client", line 350, in upload_objects named = get_object_multipart(repo_path, file_obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/sbin/flat-manager-client", line 738, in get_object_multipart return AsyncNamedFilePart( ^^^^^^^^^^^^^^^^^^^ TypeError: Can't instantiate abstract class AsyncNamedFilePart without an implementation for abstract method 'decode' ``` Create a placeholder method for now.
In aiohttp 3.10.6 aio-libs/aiohttp#6485 a new abstract method was implemented in aiohttp.Payload. So trying to instantiate the AsyncNamedFilePart class fails and causes the push command to fail: ``` File "/usr/sbin/flat-manager-client", line 350, in upload_objects named = get_object_multipart(repo_path, file_obj) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/sbin/flat-manager-client", line 738, in get_object_multipart return AsyncNamedFilePart( ^^^^^^^^^^^^^^^^^^^ TypeError: Can't instantiate abstract class AsyncNamedFilePart without an implementation for abstract method 'decode' ``` Create a placeholder method for now.
Fixes #6476.