Skip to content
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

Cannot do any listing operation #2

Open
musahi0128 opened this issue Aug 31, 2023 · 0 comments
Open

Cannot do any listing operation #2

musahi0128 opened this issue Aug 31, 2023 · 0 comments

Comments

@musahi0128
Copy link

musahi0128 commented Aug 31, 2023

Hi, I find that I am able to connect to the server using rclone. I can do upload and download, but I can't do any listing operation. For example, rclone tree TelegramS3:idnfs will return following error.

root@mush:~/TelegramS3# clear; python3 main.py
INFO:     Will watch for changes in these directories: ['/root/TelegramS3']
INFO:     Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO:     Started reloader process [2967929] using StatReload
INFO:     Started server process [2967933]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     127.0.0.1:51962 - "GET /idnfs?delimiter=&max-keys=1000&prefix= HTTP/1.1" 500 Internal Server Error
[2023-08-31 07:04:56,137] ERROR in app: Exception on request GET /idnfs
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1650, in handle_request
    return await self.full_dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1675, in full_dispatch_request
    result = await self.handle_user_exception(error)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1107, in handle_user_exception
    raise error
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1673, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1718, in dispatch_request
    return await self.ensure_async(handler)(**request_.view_args)
  File "/root/TelegramS3/main.py", line 63, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 74, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 108, in bucketData
    objects.append(Contents(obj["name"], obj["hash"], ow, obj["size"], obj["modified"]))
KeyError: 'modified'
[2023-08-31 07:04:56,336] ERROR in app: Exception on request GET /idnfs
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1650, in handle_request
    return await self.full_dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1675, in full_dispatch_request
    result = await self.handle_user_exception(error)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1107, in handle_user_exception
    raise error
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1673, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1718, in dispatch_request
    return await self.ensure_async(handler)(**request_.view_args)
  File "/root/TelegramS3/main.py", line 63, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 74, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 108, in bucketData
    objects.append(Contents(obj["name"], obj["hash"], ow, obj["size"], obj["modified"]))
KeyError: 'modified'
INFO:     127.0.0.1:51962 - "GET /idnfs?delimiter=&max-keys=1000&prefix= HTTP/1.1" 500 Internal Server Error
[2023-08-31 07:04:56,648] ERROR in app: Exception on request GET /idnfs
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1650, in handle_request
    return await self.full_dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1675, in full_dispatch_request
    result = await self.handle_user_exception(error)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1107, in handle_user_exception
    raise error
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1673, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1718, in dispatch_request
    return await self.ensure_async(handler)(**request_.view_args)
  File "/root/TelegramS3/main.py", line 63, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 74, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 108, in bucketData
    objects.append(Contents(obj["name"], obj["hash"], ow, obj["size"], obj["modified"]))
KeyError: 'modified'
INFO:     127.0.0.1:51962 - "GET /idnfs?delimiter=&max-keys=1000&prefix= HTTP/1.1" 500 Internal Server Error
INFO:     127.0.0.1:51962 - "GET /idnfs?delimiter=&max-keys=1000&prefix= HTTP/1.1" 500 Internal Server Error
[2023-08-31 07:04:56,987] ERROR in app: Exception on request GET /idnfs
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1650, in handle_request
    return await self.full_dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1675, in full_dispatch_request
    result = await self.handle_user_exception(error)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1107, in handle_user_exception
    raise error
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1673, in full_dispatch_request
    result = await self.dispatch_request(request_context)
  File "/usr/local/lib/python3.10/dist-packages/quart/app.py", line 1718, in dispatch_request
    return await self.ensure_async(handler)(**request_.view_args)
  File "/root/TelegramS3/main.py", line 63, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 74, in wrapped
    return await f(*args, **kwargs)
  File "/root/TelegramS3/main.py", line 108, in bucketData
    objects.append(Contents(obj["name"], obj["hash"], ow, obj["size"], obj["modified"]))
KeyError: 'modified'
@musahi0128 musahi0128 changed the title Cannot list bucket Cannot do any listing operation Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant