Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jan 31 2019 19:45
    dcecile commented #503
  • Jan 31 2019 19:40
    blueyed commented #526
  • Jan 31 2019 13:29
    codecov[bot] commented #526
  • Jan 31 2019 13:26
    codecov[bot] commented #526
  • Jan 31 2019 11:59
    codecov[bot] commented #526
  • Jan 31 2019 11:59
    popravich synchronize #526
  • Jan 31 2019 11:59

    popravich on travis_pypy

    .travis.yml: chaching pip packa… Makefile: build/install only re… .travis.yml: cache redis-server… (compare)

  • Jan 31 2019 11:44
    codecov[bot] commented #526
  • Jan 31 2019 11:36
    codecov[bot] commented #526
  • Jan 31 2019 11:35
    codecov[bot] commented #526
  • Jan 31 2019 11:34
    codecov[bot] commented #526
  • Jan 31 2019 11:24
    codecov[bot] commented #526
  • Jan 31 2019 11:23
    codecov[bot] commented #526
  • Jan 31 2019 10:04
    gyermolenko commented #503
  • Jan 31 2019 09:31
    gyermolenko commented #431
  • Jan 31 2019 09:23
    Natim closed #444
  • Jan 31 2019 09:23
    Natim commented #444
  • Jan 31 2019 09:09
    gyermolenko commented #444
  • Jan 31 2019 05:32
    codecov[bot] commented #539
  • Jan 31 2019 05:32
    vir-mir synchronize #539
Joir-dan Gumbs
@SakuraSound
You shouldn’t need to store the bcrypt salt, as the hash created by bcrypt already has the salt embedded
manideepl
@manideepl
got it, thanks! :)
managed to make it working
I'm getting a socket hangup error for an API
I'm not sure what's causing it. I'm just returning a jwt token generated via web.json_response method. Can somebody guide me in figuring this out?
manideepl
@manideepl
Darn, I forgot to write return before web.json_response() :D
Chrigi2486
@Chrigi2486
Lads I have a question about hosting an aiohttp.web.Application on CPanel using WSGI. I've been looking into how to do this for some days now and still haven't figured it out. If someone can help me that would be greatly appreciated.
4 replies
Joshua Jamison
@codemation

Hey aio-istas, I wanted to share another project that I have been working on which is quite relevant for those using asyncio and need to interact with Databases.

aiopyql - https://github.com/codemation/aiopyql

An asyncio ORM for interacting with databases in a more sql like way using python. Because all queries use JSON serializable data structures, it makes it very appropriate for the API space. This comes native with some more advanced features like caching, schema discovery, and query queuing . Currently supporting sqlite, mysql.. postgres still in the works, I would be very happy to hear what others think of this so far.

Alex Grönholm
@agronholm
@codemation is it truly async or does it use threads behind the scenes?
Joshua Jamison
@codemation
@agronholm it uses aiosqlite and aiomysql for the connections / cursors. aiosqlite seems to use threads, aiomysql is less obvious. The library itself does not create threads, but has Tasks attached to the main event_loop that holds connections and cursors open to re-use when possible.
Alex Grönholm
@agronholm
ok
jamespeterschinner
@jamespeterschinner
Hi Folks, could someone enlighten me in regards to best practices with keeping apache conf files on github? I'd like to include them in my project but is it a security risk?
Lukas Fam
@takeruadelbert
Hi everyone, I want to ask for help, I am having trouble for integrating aiohttp with kafka consumer (using kafka-python 2.0.2 package), kafka consumer keeps blocking the main thread on start-up app. I've read the aiohttp doc about background task, but still no luck.
can someone help me to prevent kafka block the main thread and able to run alongside with aiohttp server?
Andrew Svetlov
@asvetlov
grubberr
@grubberr
Hello, guys and @asvetlov :)
Can you comment please status
https://github.com/aio-libs/aiojobs
I see it a little bit abandoned ? is it still usable ? or maybe there is a better alternative ?
Thanks
Andrew Svetlov
@asvetlov
I believe the project is still usable. Sorry, I'm overwhelmed by other projects support. If somebody wants to pick aiojobs up -- you are welcome
grubberr
@grubberr
ok thank you
Đamien
@q4Zar
Hi Guys, i'm looking for a way to check headers in request in order to verify if there is a token or not. i was thinking of middleware but when i'm in it i don't have acces to the request object properly, so i was thinking about a decorator to apply on every route that i declare, what's your opinion ? thanks for your time per advance ! cheers
Andrew Svetlov
@asvetlov
Middleware has access to a request object, isn't it?
shauneccles
@shauneccles

Hi team, weird one. I'm using asyncio and aiohttp for a webserver using python3.8.
I'm getting continual ConnectionResetError: Cannot write to closing transport errors when I uncleanly leave the hosted page.
I see it's fixed in 3.7.2, which I'm on.
https://gist.github.com/shauneccles/eeb42b5123cfc575d80ded119a78026e

Any ideas?

shauneccles
@shauneccles
If I use 3.6.0 (release which fixed it), I don't get the errors - is this a regression?
shauneccles
@shauneccles
Confirmed, Using 3.6.3 same code and same unclean exit from hosted page only results in
[2020-11-09 11:10:55] WARNING:aiohttp.websocket:websocket connection is closing.
shauneccles
@shauneccles
Đamien
@q4Zar
@asvetlov my bad i've forgotten the @web.middleware before the middleware so the request wasn't prepared ! i'm good now
tayanov
@tayanov
hi all. im not developer. but user. any body can help why oath2 not worked with 3.7.1 but worked good with 3.6.3 ?
sorry aiohttp ))
in russia there is a popular voice assistant, he contacts the home fss assistant. but after uprade to aiohttp3.7.1 isnt not worked ((
Justin Turner Arthur
@JustinTArthur
@tayanov are you seeing an error/traceback?
Andrew Svetlov
@asvetlov
Did you mean oauth2 by oath2 mention? What library did you use for the voice assistant? Did you try to contact the library authors?
tayanov
@tayanov

@tayanov are you seeing an error/traceback?

sorry bun nothing.

Did you mean oauth2 by oath2 mention? What library did you use for the voice assistant? Did you try to contact the library authors?

library author say ins not problem of component. oauth2 create api homeassitant

tayanov
@tayanov
closed)
Vladimir Kaspar
@Sparkycz
Hey guys, please, do you have any option to contact authors of the library "aiomysql" to release new versions and boost community updates? aio-libs/aiomysql#466
Andrew Svetlov
@asvetlov
Seems that authors are not active anymore. The library needs new maintainer.
João Pedro Antunes Ferreira
@joaopedro-simbiose
Hello guys!
Do you know what is the best practice to define different routes name that uses the same handler?
Is the best practice adding a new route with the same name or is there a better way to do it?
2 replies
carlos-hoyos
@carlos-hoyos
Hello guys! I made a python server with aiohttp/asyncio. There's a client who sends data every 30 seconds that I store in a db. I noticed that after a few hours data wasn't getting registered anymore. It looks like the server applies a soft blacklist to the client, because if I change the IP of the client the server accepts the requests, also if I just restart the server. I have been reading the docs but can't find what to do to prevent this from happening.
4 replies
Joongi Kim
@achimnol
maybe db connection cleanup issue?
Florent D'halluin
@flo-dhalluin
Hello all, what's the last aiohttp version supporting python3.5 ( I know ... ) ?
1 reply
Florent D'halluin
@flo-dhalluin
I found it, I think it's the 3.6 series, am I correct ?
1 reply
dave-shawley
@dave-shawley
Hi all, good morning/evening/twilight, can anyone from aiopg provide guidance on whether the psycopg2-binary requirement will ever be removed?
Alex Grönholm
@agronholm
@dave-shawley have you tried asyncpg yet?
dave-shawley
@dave-shawley
@agronholm I have not but I'm not fond of the way that it uses prepared statements. Not to mention that we still have a few rather old PG servers in my target environment.
Alex Grönholm
@agronholm
it doesn't work with old pg versions? how old?
dave-shawley
@dave-shawley
I see that a new release of aiopg is in the queue so I asked again to switch away from psycopg2-binary -- aio-libs/aiopg#757
Earl Cochran
@earlcochran
Having an issue currently where I'm getting "too many file descriptors in select()" after about 4 minutes of a loop running. I'm only cycling through 4 URLs so I'm not sure how I'm hitting this error. I've tried using a semaphore, and i'm using async with for everything. Anything I should research or look in to to figure out why I'm hitting this error?
Everything I've seen so far is when there are many requests, usually greater than the Windows 64 socket limit
I have tried on Windows and Ubuntu with no success
Earl Cochran
@earlcochran

aio-libs/aiohttp#1568

Stumbling across this issue and the PR in the comments seems to have fixed this for me

Minna
@sandhujasmine
Do I need to have the docker daemon running in order to use aiodocker library?
1 reply
Minna
@sandhujasmine
I posted my query here: aio-libs/aiodocker#533 - wondering if I'm trying to do something that the library doesn't do or I'm using it incorrectly. Thanks in advance