编写python脚本:
from seatable_api import Base, context
api_token =context.api_token
base = Base(api_token, server_url)
base.auth()
print(base) #只运行该行可以正常获取
print(base.list_tables()) #获取子表报以下错误:
error: Error: line 7, in print(base.list_tables()) ^^^^^^^^^^^^^^^^^ File “/root/.local/lib/python3.11/site-packages/seatable_api/main.py”, line 26, in wrapper return func(obj, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/root/.local/lib/python3.11/site-packages/seatable_api/main.py”, line 33, in wrapper return getattr(new_obj, func.name)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File “/root/.local/lib/python3.11/site-packages/seatable_api/api_gateway.py”, line 94, in list_tables meta = self.get_metadata() ^^^^^^^^^^^^^^^^^^^ File “/root/.local/lib/python3.11/site-packages/seatable_api/api_gateway.py”, line 90, in get_metadata data = parse_response(response) ^^^^^^^^^^^^^^^^^^^^^^^^ File “/root/.local/lib/python3.11/site-packages/seatable_api/utils.py”, line 213, in parse_response raise ConnectionError(response.status_code, response.text) ConnectionError: [Errno 404]