Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [aiohttp]

Use this tag for questions about AIOHTTP – a client/server framework for asyncio Python.

0 votes
1 answer
19 views

retrieve full headers and url with params in the case of any aiohttps exception where the request is contructed

I would like to access the full request data including automatic headers and the url with query params without this hacky global variable. In my actual use case, Headers may be passed either to the ...
duckasaur's user avatar
0 votes
0 answers
14 views

Why cant my aiohttp get request connect to the host but my curl get request works fine?

I'm trying to send a get request to my GCP Compute Engine instance using its external IP. I have a flask server running on the instance on port 5000 and the instance is configured to accept ingress ...
Nina Johe's user avatar
1 vote
1 answer
30 views

Event loop is closed Python Async

I've built an email script , utilising a user's app key from google to get access to their email. However when i run the script i get the error 'Runtime Error: event loop is closed. On initial ...
Jadore Thompson's user avatar
-2 votes
0 answers
35 views

How to mount aiohttp route to fastapi?

I want to deploy ComfyUI on a service platform implemented with fastapi and expose ComfyUI's front-end routes to the service platform. However, since ComfyUI is implemented with aiohttp, I want to ...
Charlestar's user avatar
0 votes
0 answers
14 views

Skip TLS Handshake certificate to save Proxy bandwidth

My proxy is charging me for the whole request including TLS handshake -- basically anything that goes through their servers. (Which is fair I guess) Now when I was debugging my requests, they weigh ...
Aysennoussi's user avatar
  • 3,840
0 votes
0 answers
43 views

Different responses to the same requests (curl, python aiohttp) on the server and on the local host

I have a parser written in Python (aiohttp, bs4). One of the functions of the parser is to access a file by a link (example: https://modsfire.com/d/Mwv01aESgj73zx7). import aiohttp import yarl import ...
Петр Василий's user avatar
-4 votes
0 answers
63 views

Webrtc with aiohttp works but not fastapi

I have a sample application (https://github.com/pushkarprasad007/llm-aiortc) which uses aiortc, where User is supposed to send the audio and then its recorded on python server on backend, and then ...
Ouroboros's user avatar
  • 1,378
1 vote
1 answer
41 views

aiohttp showing 403 Forbidden but requests.get giving 200 OK response

I'm using aiohttp to asynchronously scrap some price from an url. Before, I used requests.get to synchronously do the same. I am able successfully able to scrap using requests.get but the same URL ...
Gbn's user avatar
  • 73
0 votes
1 answer
33 views

aiohttp client methods being called from aiohttp server cause RuntimeError

I'm trying to create a payment microservice with following layout: The client side is working fine until it comes to use aiohttp client methods in aiohttp server side. I have a class which creates an ...
Antony_K's user avatar
  • 120
0 votes
0 answers
15 views

aiohttp with proxy and cookies not working

I have been attempting to learn how to use aiohttp for a while to make requests asynchronously. I have been stuck in making a request that uses both cookies and proxies on it. This is my current code: ...
user18191682's user avatar
0 votes
0 answers
20 views

RuntimeError: Event loop is closed when integrating Telegram with Rasa chatbot

I am trying to integrate Telegram with my Rasa chatbot, but I am encountering following error --> RuntimeError: Event loop is closed. It appears that the event loop in asyncio is closed, causing ...
Prakash Ramu's user avatar
0 votes
1 answer
34 views

My discord.py bot gives a runtime error when trying to use aiohttp package

I tried to use an api for my discord bot using nest_asyncio and aiohttp Traceback (most recent call last): File "c:\Users\\Desktop\TPLbot\main.py", line 296, in <module> client....
toti's user avatar
  • 9
0 votes
1 answer
46 views

Python aiohttp web server not handling more than one request once

I'm new to python and may be being dumb here, but I can't figure out why my server cant handle more than one connection once. My sample code: import time from aiohttp import web def testF(request): #...
Marco Vinicius Castellari's user avatar
0 votes
1 answer
41 views

How to speed up API requests using aiohttp and async functions in python?

I have been trying to speed up a batch of api requests and I couldn't figure out why this code doesn't return anything. When I do this without async functions and just using simple requests everything ...
ribicapongo's user avatar
0 votes
2 answers
39 views

How do I fix session closed error when using asyncio library

I'm trying write a python script that makes a bunch of parallel http requests. Here is what I have so far. async def deleteLinkRecords(req_headers): async with aiohttp.ClientSession(trust_env=True) ...
RKodakandla's user avatar
  • 3,404

15 30 50 per page
1
2 3 4 5
114