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
Alex Grönholm
@agronholm
I assume you don't literally put "{url}" in the call
Kay Khan
@kaykhancheckpoint
what are people using to log http request to json
Nikhil Pareek
@NikhilPareek88
@agronholm it it in a loop, and every time url is changed with some id.
the problem is, is it possible to avoid all data store in-memory
Andres Hermosilla
@rezen
Here is a my first pass at making aiohttp server work in lambda. It's a bit hacky, but it does work https://gist.github.com/rezen/3f8294c04d96eadca49515cb392f00e7
1 reply
Aviram Hassan
@aviramha
Hi All,
I'm having issues with aio kafka spamming this message: Heartbeat failed for group 0 because it is rebalancing
RES
@madkote

=== === ===
Hello Here!

a bit of topic question, but I still try it here:

in setup.py i neeed the keras-contrib@https://github.com/keras-team/keras-contrib.git as REQUIRES_INSTALL package.
Everyting works fine when installing with pip -r ..., BUT when tha package is built as wheel, then

ERROR: Could not find a version that satisfies the requirement keras-contrib (from superduperpack==0.3.5) (from versions: none)
ERROR: No matching distribution found for keras-contrib (from superduperpack==0.3.5)

Help appreciated!

Taras Voinarovskyi
@tvoinarovskyi
@aviramha if you are not yet on 0.6.0 aiokafka, please update, there were a few issues fixed
Those errors are usually fine if a few are thrown. Do you have a lot of partitions, I think the error may be printed for each one, which may be the reason of spamming.
If you are actually seeing constant spamming of this error, than you need to check your brokers, maybe Kafka can't elect a new coordinator. If nothing helps feel free to open an issue in aiokafka's bug tracker
Logs of how exactly it's spamming would be helpful in that case
Aviram Hassan
@aviramha
@tvoinarovskyi It seems to be a false alarm. I had an issue in my microservice and it was sending it every 3 secs so I thought it's related. Thanks for the help!
manideepl
@manideepl
Is there any good video course or book other than the polls tutorial available on the site?
manideepl
@manideepl
where do I store the salt generated by bcrypt? Is there a way I can persist it other than db?
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.
3 replies