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
SenQi-666
@SenQi-666
help me, please.It's ProxyPoo
SelfhostedPro
@SelfhostedPro
Having some trouble with aio docker getting an error with RuntimeError: Session is closed
aio-libs/aiodocker#491
Could someone help me troubleshoot this? Not really sure what I'm doing wrong and the error isn't super descriptive.
Joseph Tobing
@jtboing_gitlab
Hello. Is there any other documentation/tutorial of deploying aiohttp with nginx? I'm planning to deploy but besides pointers from the aiohttp documentation deployment page, I didn't find anything else. Any pointers would be appreciated, thanks.
Angus Waller
@AngusWaller
Hey everyone, great library by the way! Just wondering if it’s possible to get some documentation on DB pool recycling, as I only found out It exists by reading through the library. What does the -1 represent and what is a appropriate value if I want to recycle connections?
I was referring to aioodbc by the way, seems like this room has multiple contexts
balamurugan
@balaa
You can deploy you aiohttp with gunicorn +nginx. You can configure aiohttp worker type in gunicorn. Please refer the documentation https://docs.aiohttp.org/en/stable/deployment.html#nginx-gunicorn
You just have to configure proxy_pass in nginx, Google search can give you lots of examples, just refer this page https://gist.github.com/soheilhy/8b94347ff8336d971ad0
gkkn
@geekkun
Hi, I've started to use aioodbc recently, where could I find info on implemented methods from pyodbc? Are there any docs available? I was trying to use cursor.execute('select count(*) from users').fetchval(), but it doesn't work, unfortunately
geebips
@geebips
Hmm, hello?
Ajay Gupta
@aj_ajay27_twitter
I want to use aiojobs for running background tasks like calling another service for sending emails, SMS etc. Not sure show to implement this with aiohttp.
await spawn(request, coro())
this wraps the complete handler as a background tasks, is their a subtle example for making a single function which does some heavylifting and then sends emails and also runs in background
not in the same event loop
Joongi Kim
@achimnol
due to recent release of Chrome to enforce the new secure/smasite cookie behavior, i think we need to release aiohttp 3.6.3 or 3.7, since it’s already patched in the master
@asvetlov do you have any plans for release? what’s the blocking issue for the release?
Jonas Krüger Svensson
@JonasKs
Anyone know if there a reason the PRs don't get reviewed?
Stéphane Wirtel
@matrixise
Missing time
Miha Jenko
@mihajenko_gitlab

Hi, I was making a custom MultiPart form-data request and got a 502 (it's either nginx or Apache, so standard).
Commenting out this line was what made the request successful:
https://github.com/aio-libs/aiohttp/blob/5f0a59fd38f048ee65b6199a26d2355075d0d196/aiohttp/helpers.py#L372

Is this covered by some standard?

it looks weird but a standard
Miha Jenko
@mihajenko_gitlab
RFC 5987 chapter 4.2 Error Handling, says: "many implementations failed to ignore the form they do not understand, or prioritize the ASCII form although the extended syntax was present."
I'll look into the server, first. But it might be useful to add an option or detection to helpers.content_disposition_headerwhether to encode the field value or not. In my case, it was an ASCII string. Also, curl didn't encode it.
thierrylaval
@thierrylaval
Hello guys, anyone knows how I could define a specific IP address (as destination) when using the aiohttp client?
Alex Grönholm
@agronholm
@thierrylaval do you mean you want to check the server certificate against a different host name?
I mean, otherwise just enter the ip address as the host name?
Justin Turner Arthur
@JustinTArthur
@thierrylaval the only way I know of to override the IP address for a host you pass in the URL is to supply a custom resolver to the TCPConnector you use for your session. Format | Examples
tzickel
@tzickel
For anybody looking for an async redis library for python, check out https://github.com/tzickel/justredis
Justin Turner Arthur
@JustinTArthur
Neat, @tzickel. Do you happen to have auto-reconnect support?
tzickel
@tzickel
@JustinTArthur What do you mean by auto-reconnect ?
Justin Turner Arthur
@JustinTArthur
@tzickel I mean if the TCP connection is severed, if there’s an option to continue using the same Redis connection object while reconnect is attempted in the background. No worries if not, but can be a useful feature to have for long-running services.
tzickel
@tzickel
it depends on how you use it, the default usage is backed by a connection pool, so if a connection in the pool is severed than yes, it will detect it, dispose of it, let the user know, and the next command to the connection pool will use a new connection
matrixbot
@matrixbot
wraptile How do you create session with specific cookies?
wraptile posted an image: image.png
wraptile the docs here are incorrect as dict is invalid type
wraptile ValueError: dictionary update sequence element #0 has length 9; 2 is required
matrixbot
@matrixbot
wraptile man, client cookies are extremely confusing here 😐️
Justin Turner Arthur
@JustinTArthur
wraptile, we can’t see your screenshot on the Gitter side of your Matrix bridge unfortunately
matrixbot
@matrixbot
wraptile yeah I've noticed that as well 😅
wraptile what's the de facto way to serialize/deserialize session? For cookies it seems to be awfully complicated

wraptile ```
async def test_cookies():
async with ClientSession() as session:
session.cookie_jar.update_cookies(SimpleCookie('login=jogn; Path=/; Domain=httpbin.org'))
session.cookie_jar.update_cookies(SimpleCookie('pass=snow; Path=/; Domain=httpbin.org'))
session.cookie_jar.update_cookies(SimpleCookie('foo=bar; Path=/;'))
cookies = pickle.dumps(session.cookie_jar._cookies)
resp = await session.get('http://httpbin.org/cookies')
print(await resp.text())

async with ClientSession() as session:
    session.cookie_jar._cookies = pickle.loads(cookies)
    print(await resp.text())

```

wraptile this is kinda ugly, but I guess it should work fine? 😬
wraptile I see the bridge doesn't format the code snippet well either, ugh. Maybe now that Matrix bought gitter they can finally fix this
Justin Turner Arthur
@JustinTArthur
What is the serialization for? Are you sending this pickle down the wire to subprocesses?
matrixbot
@matrixbot
wraptile no I want the session to be persistent so that cronjobs can pick up a saved session details and resume some work
Justin Turner Arthur
@JustinTArthur
Gotchya. Well, two questions A) Did you get past your ValueError you mentioned above? B) Have you looked at session.cookie_jar.save(…) and session.cookie_jar.load(…)?
matrixbot
@matrixbot
wraptile e.g. job 1: log in to a website; job 2 few minutes later: scrape some stuff.
Job1 should save cookies to db; job2 should be able to restore ClientSession object from that db pickle.
wraptile yeah, the code snippet is absed of save() and load()
wraptile except to memory rather than file
wraptile I'm kinda disappointed that none of python's http libs implement session serialization/deserialization :|