Comments (7)
from what I see this is an issue with your usecase/tornado. aiobotcore and its dependencies require the use of an Event loop that's compatible with BaseEventLoop
. The BaseEventLoop
requires support of Task
s and a task requires a current_task
and it doesn't seem like tornado sets/provides this. btw even passing timeout=None would cause the error because it does the current_task check before the None timeout check in that timeout class.
from aiobotocore.
btw, can you try with the latest aiohttp? The codepath has changed significantly in regard to timeouts
from aiobotocore.
Regarding Tornado's use of current_task
, it was brought up in the two issues I linked previously, as well as most other issues opened regarding tornado + aio libraries. I figured since a fix did make its way into aiohttp, aiobotocore could support it. Otherwise I understand, it's not really aiobotocore's responsibility :)
I am on the latest pypi version of aiohttp (1.3.3), which should have all commits regarding timeouts that were pushed to fix aio-libs/aiohttp#1180, since I used this example and it was working. I see in the changelog of 1.3.4 that there is a revert of some timeout handling in client request, so I'll pull that and see if that helps, thanks!
from aiobotocore.
@andymo The simplest fix is to just wrap your calls in a Task, like so:
async def get(self):
session = aiobotocore.get_session()
client = session.create_client('s3')
task = asyncio.ensure_future(client.list_buckets())
response = await task
self.write(response)
from aiobotocore.
btw, I'm disabling the use of aiohttp's read_timeout (#248) as it is implemented incorrectly, this may help your cause. If getting rid of conn timeout helps as well we can look into that. I'm really unhappy with their timeout impl :(
from aiobotocore.
@thehesiod do you think we can close this?
from aiobotocore.
I believe so
from aiobotocore.
Related Issues (20)
- drop aiobotocore prefix from releases HOT 4
- Add link to upstream diff to PR template
- Add new version compatible with airflow 2.5.1 HOT 7
- Aiohttp connection leak
- Support botocore>=1.33.2 HOT 2
- Proxy not working due to signature mismatch HOT 4
- AttributeError: 'S3' object has no attribute 'upload_file'" when calling upload_file on s3 client HOT 2
- S3 Express Session opened for all asyncio calls HOT 4
- 2.10.0 release failed HOT 1
- Support `botocore==1.34.27` HOT 3
- Support for botocore 1.34.33 HOT 1
- Is Session/Client thread or asyncio safe? HOT 3
- Botocore max dependency range HOT 3
- Bump botocore to at least 1.34.40 HOT 5
- support botocore-1.34.53? HOT 3
- Signed urls generated by aiobotocore.signers.AioRequestSigner rejected by AWS HOT 2
- Instance of `StreamingBody` returns `True` for `isinstance` `Iterable` check HOT 4
- Aiobotocore with latest moto server HOT 1
- 2.12.3: pytest fails HOT 3
- 2.12.3: pep517 build and sphinx warnings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiobotocore.