-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
asyncFileStorage issue #163
Comments
Hi! Can you please provide more context about the issue? Hishel version, code, traceback |
Hi! Sure thing. excerpts from code below. Being run from main.py with What am I doing wrong? `from hishel import AsyncCacheClient async def get_ine_census_data(year, indicador_id, save_to_parquet=False, save_to_csv=False): |
Hello, I have the same problem. Take this sample script: import hishel
from anyio import run
async def main():
storage = hishel.AsyncFileStorage(base_path=".cache")
client = hishel.AsyncCacheClient(storage=storage)
await client.get("https://httpbin.org/json")
if __name__ == "__main__":
run(main) When I run it, the tree .cache
If I enable debug logging, I see the following:
Package Information
Dependency Information
Build Tools Information
Platform Information
|
Hi! import hishel
from anyio import run
async def main():
storage = hishel.AsyncFileStorage(base_path=".cache")
client = hishel.AsyncCacheClient(storage=storage)
await client.get("https://httpbin.org/json", extensions={"force_cache": True})
if __name__ == "__main__":
run(main) |
Oh, that makes a lot of sense, thank you! |
I'm using the async file storage client. The cache path gets created, but no files are created when using the client. How can I check what's happening?
The text was updated successfully, but these errors were encountered: