Closed cheginit closed 3 years ago
Also, this happened after updating to 0.5.0 and wasn't in the previous versions.
Looks like I broke this in #85. This should be easy to fix. Thanks for reporting it!
Sure! Great.
This is now fixed in 0.5.1. Looks like your example works as expected now.
Let me know if you run into any more issues!
Thanks for the quick fix! Will you update it on the conda-forge repo as well?
Yes, that's managed by the conda-forge bot on the repo here: https://github.com/conda-forge/aiohttp-client-cache-feedstock
It picks up new releases from PyPI and triggers a new conda release, usually within an hour or so.
Looks like the latest version is on conda-forge now.
Great! Now, I can release my package with your latest fix.
The problem
When the URL contains keywords,
session.get
(orsession.post
) convert those keywords into dictionaries and adds to theparams
(ordata
) argument but doesn't remove them from the URL. This leads to duplicate keywords in the requests that causes the request to fails.Expected behavior
I tested the same code with
aiohttp.ClientSession
and it works without any issue so the issue is withCachedSession
.Steps to reproduce the behavior
For some reason,
PARAM
is changed in thesession.get
call to{'f': 'json', 'coords': 'POINT(-69.3 45.2)'}
.Workarounds
Pass all the keywords as
params
.Environment
0.5.0
3.9