Git Product home page Git Product logo

async-oss's Issues

The close method of _Base class is not available.

Environment

  • aiohttp 3.8.6
  • oss2 2.18.4
  • asyncio-oss 1.1.2

Example Code

bucket = asyncio_oss.Bucket(oss_auth, endpoint, "test_bucket")
await bucket.put_object("test/test.txt", "test")
await bucket.close()

Error

Traceback (most recent call last):
  File "/home/lmsh7/financial-report/financial_report/api/module/oss_client.py", line 171, in <module>
    loop.run_until_complete(test_async_upload())
  File "/usr/local/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
    return future.result()
  File "/home/lmsh7/financial-report/financial_report/api/module/oss_client.py", line 165, in test_async_upload
    await bucket.close()
  File "/home/lmsh7/.local/lib/python3.10/site-packages/asyncio_oss/api.py", line 281, in close
    await self.session.close()
AttributeError: 'Session' object has no attribute 'close'
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7fb353743f40>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fb35376f400>, 2329107.492301855)]']
connector: <aiohttp.connector.TCPConnector object at 0x7fb353743e80>

ObjectIterator BUG

asyncio_oss.ObjectIterator 的父类 _BaseIterator 实现了 aiter 方法。
aiter 是否应该删除def 前的 async ,当有 async 时 会触发
TypeError: 'async for' received an object from aiter that does not implement anext: coroutine

put_object_tagging BUG

put_object_tagging 会返回 asyncio_oss.exceptions.SignatureDoesNotMatch,但是我不知道该如何解决,麻烦看一下,多谢

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.