Async client uses blocking call when uploading file with v2 #1496
Labels
area:async
bug
M-T: A confirmed bug report. Issues are confirmed when the reproduction steps are documented
Version: 3x
web-client
Milestone
This project is used to support the Slack integration for the Home-Assistant project. Home-Assistant uses a single event loop and prevents any calls in the event loop that are blocking.
The Slack SDK version
3.27.1
Python runtime version
3.12.3
OS info
ProductName: macOS
ProductVersion: 14.4.1
BuildVersion: 23E224
Steps to reproduce:
Check out the pr below for context. We would still use upload v1 until the upload can be fully async.
home-assistant/core#116868
Expected result:
The files should ideally be uploaded in an asynchronous manner both for local files and remote urls using
aiohttp
with theClientSession
object give byAsyncBaseClient.session
.Actual result:
The call to
putrequest
would block the event loop and so it cannot move forward.logs:
The text was updated successfully, but these errors were encountered: