Skip to main content
1 vote
0 answers
48 views

Memory leak in aioboto3 (aiohttp) after upgrading to Python 3.13

I’m seeing a steady memory increase in my ECS containers after upgrading Python and dependency versions. The memory growth stops when I stop incoming gRPC requests, but it never drops back down ...
datahack's user avatar
  • 641
2 votes
1 answer
83 views

Fetch data concurrently within for loop using asnycio

I would like to optimize my current function called process_coordinates. import asyncio from aiohttp import ClientSession from tqdm.asyncio import tqdm import pandas as pd from streetlevel import ...
Daniel AG's user avatar
  • 121
4 votes
3 answers
360 views

How to limit asyncio HTTP requests to N per second while processing results immediately?

How can I throttle API requests in Python’s asyncio so that no more than 5 requests are sent per second, while still processing results as soon as they arrive? I’m working with an asynchronous HTTP ...
user avatar
0 votes
0 answers
75 views

How can I trigger CVE-2024-30251 (aiohttp multipart/form-data DoS) with a minimal POC script? [Need a simple concrete example]

I am trying to reproduce CVE-2024-30251, a denial-of-service vulnerability in aiohttp (Python async web framework) that affects versions prior to 3.9.4. According to the advisories, this vulnerability ...
ADITYA UDAY UBALE's user avatar
1 vote
0 answers
56 views

Polling + Webhook behind NGINX, slow updates on production

Setup: Telegram bot built with aiogram (Python 3.10) Main bot works via long polling Additional bots (inviters) connect to the main bot Inviters generate invite links to private channels and accept ...
KÖMI's user avatar
  • 11
-1 votes
1 answer
120 views

Python orchestration - Download and extract files concurrently using asyncio

I am using Python 3.12.3 + asyncio + aiohttp Situation: I have multiple 7z files split into 1 Gib parts Goal: download file_N parts AND (at the same time) extract already downloaded file_N-1 parts ...
aymericpineau's user avatar
0 votes
2 answers
300 views

Call async code inside sync code inside async code

I've found myself in a tricky situation which I can't seem to find my way out of: I've written an application which uses asyncio (and, in particular, aiohttp). In part of this application, I need to ...
DMJ's user avatar
  • 888
0 votes
0 answers
148 views

aiohttp ClientConnectionError SSL shutdown timed out when closing Microsoft Graph connection

I’m using Python 3.11.11 and aiohttp 3.11.18 to talk to Microsoft Graph (endpoints like /sendMail and /delta). Every request completes successfully (I get 200 or 202), but as soon as aiohttp tries to ...
Henri Coorevits's user avatar
0 votes
1 answer
65 views

aiohttp what does timeout "ceil_threshold" do

What exactly does ceil_threshold in aiohttp's timeout parameters do, and when does it take effect? I tried setting it to a value smaller than connect and sock_read, but it didn’t seem to change ...
RockyDon's user avatar
  • 125
0 votes
0 answers
87 views

Bitunix API returns "Signature Error" (code 10007) when placing an order using aiohttp client in Python

I'm trying to integrate with the Bitunix API (https://openapidoc.bitunix.com/doc/common/introduction.html) using Python and aiohttp. I implemented authentication and signature generation as per the ...
Milad's user avatar
  • 464
0 votes
0 answers
25 views

python server / JS client: socketio regular disconnects

In trying to reproduce errors from a larger project I have created a server using python's aiohttp and the following python-socketio (v5.12.0) namespace: class MyNamespace(AsyncNamespace): ...
Gentleman_Narwhal's user avatar
0 votes
2 answers
67 views

How to make dynamic path that will be represented as list in aiohttp server?

Let's say that I have an example code: from aiohttp import web async def example(r): a = r.match_info.get('a') b = r.match_info.get('b') c = r.match_info.get('c') return web.Response(...
rzlvmp's user avatar
  • 9,814
0 votes
0 answers
78 views

Bria API Slow Response Time (~40-60s per Image) When Processing 300+ Images Asynchronously in Python https://bria.ai/

I’m currently integrating the Bria API to remove backgrounds from video frames (images) in bulk using asynchronous Python code. The setup works fine for a small number of images, but when I send more ...
Kaustubh Bagwe's user avatar
0 votes
0 answers
174 views

Why torify+aiohttp gives out error "Cannot connect to host python.org:80 ssl:default [Could not contact DNS servers]"?

Linux Mint, python 3.12 NB: torify works well with curl. So I activate venv, then run Tor, then drun the snippet. The code: import aiohttp import asyncio async def main(): async with aiohttp....
user407971's user avatar
1 vote
1 answer
106 views

How to "swallow" python's asyncio library's TimeoutError exception

I have a python script that connects to a server and downloads a large amount of videos and photos. And when I say large, I mean in the tens of thousands. The total amount of data to be downloaded ...
mtrojak2's user avatar
  • 123

15 30 50 per page
1
2 3 4 5
115