During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "D:\application\Python310\lib\multiprocessing\spawn.py", line 116, in spawn_main
exitcode = _main(fd, parent_sentinel)
│ │ └ 724
│ └ 3
└ <function _main at 0x0000028CCCDAA830>
File "D:\application\Python310\lib\multiprocessing\spawn.py", line 129, in _main
return self._bootstrap(parent_sentinel)
│ │ └ 724
│ └ <function BaseProcess._bootstrap at 0x0000028CCCCD1B40>
└ <SpawnProcess name='SpawnProcess-1' parent=16008 started>
File "D:\application\Python310\lib\multiprocessing\process.py", line 315, in _bootstrap
self.run()
│ └ <function BaseProcess.run at 0x0000028CCCCD11B0>
└ <SpawnProcess name='SpawnProcess-1' parent=16008 started>
File "D:\application\Python310\lib\multiprocessing\process.py", line 108, in run
self._target(*self._args, **self._kwargs)
│ │ │ │ │ └ {'config': <uvicorn.config.Config object at 0x0000028CCCD9F3A0>, 'target': <bound method Server.run of <uvicorn.server.Server...
│ │ │ │ └ <SpawnProcess name='SpawnProcess-1' parent=16008 started>
│ │ │ └ ()
│ │ └ <SpawnProcess name='SpawnProcess-1' parent=16008 started>
│ └ <function subprocess_started at 0x0000028CCD9AED40>
└ <SpawnProcess name='SpawnProcess-1' parent=16008 started>
File "D:\pyVenv\mypyenv310\lib\site-packages\uvicorn\_subprocess.py", line 80, in subprocess_started
target(sockets=sockets)
│ └ [<socket.socket fd=836, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 9999)>]
└ <bound method Server.run of <uvicorn.server.Server object at 0x0000028CCCD9F4C0>>
File "D:\pyVenv\mypyenv310\lib\site-packages\uvicorn\server.py", line 66, in run
return asyncio.run(self.serve(sockets=sockets))
│ │ │ │ └ [<socket.socket fd=836, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6, laddr=('0.0.0.0', 9999)>]
│ │ │ └ <function Server.serve at 0x0000028CCD997640>
│ │ └ <uvicorn.server.Server object at 0x0000028CCCD9F4C0>
│ └ <function run at 0x0000028CCCDBD1B0>
└ <module 'asyncio' from 'D:\\application\\Python310\\lib\\asyncio\\__init__.py'>
File "D:\application\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
│ │ └ <coroutine object Server.serve at 0x0000028CCD98EA40>
│ └ <function BaseEventLoop.run_until_complete at 0x0000028CCD1FA710>
└ <_WindowsSelectorEventLoop running=True closed=False debug=False>
File "D:\application\Python310\lib\asyncio\base_events.py", line 628, in run_until_complete
self.run_forever()
│ └ <function BaseEventLoop.run_forever at 0x0000028CCD1FA680>
└ <_WindowsSelectorEventLoop running=True closed=False debug=False>
File "D:\application\Python310\lib\asyncio\base_events.py", line 595, in run_forever
self._run_once()
│ └ <function BaseEventLoop._run_once at 0x0000028CCD1FC1F0>
└ <_WindowsSelectorEventLoop running=True closed=False debug=False>
File "D:\application\Python310\lib\asyncio\base_events.py", line 1881, in _run_once
handle._run()
│ └ <function Handle._run at 0x0000028CCD13FAC0>
└ <Handle Task.task_wakeup(<Future cancelled>)>
File "D:\application\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
│ │ │ │ │ └ <member '_args' of 'Handle' objects>
│ │ │ │ └ <Handle Task.task_wakeup(<Future cancelled>)>
│ │ │ └ <member '_callback' of 'Handle' objects>
│ │ └ <Handle Task.task_wakeup(<Future cancelled>)>
│ └ <member '_context' of 'Handle' objects>
└ <Handle Task.task_wakeup(<Future cancelled>)>
> File "D:\pyVenv\mypyenv310\lib\site-packages\uvicorn\protocols\http\h11_impl.py", line 403, in run_asgi
result = await app( # type: ignore[func-returns-value]
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x0000028CCD9B63B0>
File "D:\pyVenv\mypyenv310\lib\site-packages\uvicorn\middleware\proxy_headers.py", line 60, in __call__
return await self.app(scope, receive, send)
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57FE80>>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <fastapi.applications.FastAPI object at 0x0000028CEAF5EC20>
└ <uvicorn.middleware.proxy_headers.ProxyHeadersMiddleware object at 0x0000028CCD9B63B0>
File "D:\pyVenv\mypyenv310\lib\site-packages\fastapi\applications.py", line 1054, in __call__
await super().__call__(scope, receive, send)
│ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57FE80>>
│ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
└ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\applications.py", line 113, in __call__
await self.middleware_stack(scope, receive, send)
│ │ │ │ └ <bound method RequestResponseCycle.send of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57FE80>>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <starlette.middleware.errors.ServerErrorMiddleware object at 0x0000028CEB1C6C20>
└ <fastapi.applications.FastAPI object at 0x0000028CEAF5EC20>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\errors.py", line 187, in __call__
raise exc
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\errors.py", line 165, in __call__
await self.app(scope, receive, _send)
│ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x0000028CEB5DDA20>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <starlette.middleware.cors.CORSMiddleware object at 0x0000028CEB1C6BF0>
└ <starlette.middleware.errors.ServerErrorMiddleware object at 0x0000028CEB1C6C20>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\cors.py", line 93, in __call__
await self.simple_response(scope, receive, send, request_headers=headers)
│ │ │ │ │ └ Headers({'host': '127.0.0.1:9999', 'connection': 'keep-alive', 'content-length': '87', 'sec-ch-ua-platform': '"Windows"', 'us...
│ │ │ │ └ <function ServerErrorMiddleware.__call__.<locals>._send at 0x0000028CEB5DDA20>
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <function CORSMiddleware.simple_response at 0x0000028CEAF6B640>
└ <starlette.middleware.cors.CORSMiddleware object at 0x0000028CEB1C6BF0>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\cors.py", line 144, in simple_response
await self.app(scope, receive, send)
│ │ │ │ └ functools.partial(<bound method CORSMiddleware.send of <starlette.middleware.cors.CORSMiddleware object at 0x0000028CEB1C6BF0...
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <app.core.middlewares.BackGroundTaskMiddleware object at 0x0000028CEB1C6B90>
└ <starlette.middleware.cors.CORSMiddleware object at 0x0000028CEB1C6BF0>
File "E:\Code\EquipmentRegistryDataPlatform\app\core\middlewares.py", line 28, in __call__
await self.handle_http(scope, receive, send)
│ │ │ │ └ functools.partial(<bound method CORSMiddleware.send of <starlette.middleware.cors.CORSMiddleware object at 0x0000028CEB1C6BF0...
│ │ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <function SimpleBaseMiddleware.handle_http at 0x0000028CEAF8C3A0>
└ <app.core.middlewares.BackGroundTaskMiddleware object at 0x0000028CEB1C6B90>
File "E:\Code\EquipmentRegistryDataPlatform\app\core\middlewares.py", line 38, in handle_http
await response(scope, receive, send_wrapper)
│ │ │ └ <function SimpleBaseMiddleware.handle_http.<locals>.send_wrapper at 0x0000028CEBEA6050>
│ │ └ <bound method RequestResponseCycle.receive of <uvicorn.protocols.http.h11_impl.RequestResponseCycle object at 0x0000028CEB57F...
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
└ <app.core.middlewares.APILoggerMiddleware object at 0x0000028CEB1C6B30>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\base.py", line 185, in __call__
with collapse_excgroups():
└ <function collapse_excgroups at 0x0000028CCFAD4CA0>
File "D:\application\Python310\lib\contextlib.py", line 153, in __exit__
self.gen.throw(typ, value, traceback)
│ │ │ │ │ └ <traceback object at 0x0000028CEB417D40>
│ │ │ │ └ ExceptionGroup('unhandled errors in a TaskGroup', [AttributeError("'NoneType' object has no attribute 'get'")])
│ │ │ └ <class 'exceptiongroup.ExceptionGroup'>
│ │ └ <method 'throw' of 'generator' objects>
│ └ <generator object collapse_excgroups at 0x0000028CEBF19FC0>
└ <contextlib._GeneratorContextManager object at 0x0000028CEB57E9B0>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_utils.py", line 82, in collapse_excgroups
raise exc
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\base.py", line 188, in __call__
await response(scope, wrapped_receive, send)
│ │ │ └ <function SimpleBaseMiddleware.handle_http.<locals>.send_wrapper at 0x0000028CEBEA6050>
│ │ └ <bound method _CachedRequest.wrapped_receive of <starlette.middleware.base._CachedRequest object at 0x0000028CEB57DFC0>>
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
└ <starlette.middleware.base._StreamingResponse object at 0x0000028CEB586C80>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\base.py", line 222, in __call__
async for chunk in self.body_iterator:
│ └ <async_generator object BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.body_stream at 0x0000028CEB5D9140>
└ <starlette.middleware.base._StreamingResponse object at 0x0000028CEB586C80>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\base.py", line 179, in body_stream
raise app_exc
└ AttributeError("'NoneType' object has no attribute 'get'")
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\base.py", line 149, in coro
await self.app(scope, receive_or_disconnect, send_no_error)
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000028CEBF10310>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <app.core.middlewares.APILoggerAddResponseMiddleware object at 0x0000028CEB1C6A70>
└ <app.core.middlewares.APILoggerMiddleware object at 0x0000028CEB1C6B30>
File "E:\Code\EquipmentRegistryDataPlatform\app\core\middlewares.py", line 28, in __call__
await self.handle_http(scope, receive, send)
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.send_no_error at 0x0000028CEBF10310>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <function SimpleBaseMiddleware.handle_http at 0x0000028CEAF8C3A0>
└ <app.core.middlewares.APILoggerAddResponseMiddleware object at 0x0000028CEB1C6A70>
File "E:\Code\EquipmentRegistryDataPlatform\app\core\middlewares.py", line 38, in handle_http
await response(scope, receive, send_wrapper)
│ │ │ └ <function SimpleBaseMiddleware.handle_http.<locals>.send_wrapper at 0x0000028CEBF10A60>
│ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
└ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000028CEB1C6A40>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\middleware\exceptions.py", line 62, in __call__
await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
│ │ │ │ │ │ └ <function SimpleBaseMiddleware.handle_http.<locals>.send_wrapper at 0x0000028CEBF10A60>
│ │ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ │ │ └ <starlette.requests.Request object at 0x0000028CEB585060>
│ │ └ <fastapi.routing.APIRouter object at 0x0000028CEAF5E500>
│ └ <starlette.middleware.exceptions.ExceptionMiddleware object at 0x0000028CEB1C6A40>
└ <function wrap_app_handling_exceptions at 0x0000028CCFA97640>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
│ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10790>
│ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
└ <fastapi.routing.APIRouter object at 0x0000028CEAF5E500>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\routing.py", line 715, in __call__
await self.middleware_stack(scope, receive, send)
│ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10790>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <bound method Router.app of <fastapi.routing.APIRouter object at 0x0000028CEAF5E500>>
└ <fastapi.routing.APIRouter object at 0x0000028CEAF5E500>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\routing.py", line 735, in app
await route.handle(scope, receive, send)
│ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10790>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <function Route.handle at 0x0000028CCFA40D30>
└ APIRoute(path='/api/v1/zentao/dept/all', name='_', methods=['POST'])
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\routing.py", line 288, in handle
await self.app(scope, receive, send)
│ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10790>
│ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ └ <function request_response.<locals>.app at 0x0000028CEB11A680>
└ APIRoute(path='/api/v1/zentao/dept/all', name='_', methods=['POST'])
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\routing.py", line 76, in app
await wrap_app_handling_exceptions(app, request)(scope, receive, send)
│ │ │ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10790>
│ │ │ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ │ │ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
│ │ └ <starlette.requests.Request object at 0x0000028CEB585A80>
│ └ <function request_response.<locals>.app.<locals>.app at 0x0000028CEBF10B80>
└ <function wrap_app_handling_exceptions at 0x0000028CCFA97640>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_exception_handler.py", line 53, in wrapped_app
raise exc
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_exception_handler.py", line 42, in wrapped_app
await app(scope, receive, sender)
│ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10C10>
│ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
└ <function request_response.<locals>.app.<locals>.app at 0x0000028CEBF10B80>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\routing.py", line 74, in app
await response(scope, receive, send)
│ │ │ └ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10C10>
│ │ └ <function BaseHTTPMiddleware.__call__.<locals>.call_next.<locals>.receive_or_disconnect at 0x0000028CEBEA5F30>
│ └ {'type': 'http', 'asgi': {'version': '3.0', 'spec_version': '2.3'}, 'http_version': '1.1', 'server': ('127.0.0.1', 9999), 'cl...
└ <starlette.responses.JSONResponse object at 0x0000028CEB584850>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\responses.py", line 155, in __call__
await send({"type": prefix + "http.response.body", "body": self.body})
│ │ │ └ b'null'
│ │ └ <starlette.responses.JSONResponse object at 0x0000028CEB584850>
│ └ ''
└ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10C10>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_exception_handler.py", line 39, in sender
await send(message)
│ └ {'type': 'http.response.body', 'body': b'null'}
└ <function wrap_app_handling_exceptions.<locals>.wrapped_app.<locals>.sender at 0x0000028CEBF10790>
File "D:\pyVenv\mypyenv310\lib\site-packages\starlette\_exception_handler.py", line 39, in sender
await send(message)
│ └ {'type': 'http.response.body', 'body': b'null'}
└ <function SimpleBaseMiddleware.handle_http.<locals>.send_wrapper at 0x0000028CEBF10A60>
File "E:\Code\EquipmentRegistryDataPlatform\app\core\middlewares.py", line 35, in send_wrapper
await self.after_request(request, _response)
│ │ │ └ {'type': 'http.response.body', 'body': b'null'}
│ │ └ <starlette.requests.Request object at 0x0000028CEB584040>
│ └ <function APILoggerAddResponseMiddleware.after_request at 0x0000028CEAF8C700>
└ <app.core.middlewares.APILoggerAddResponseMiddleware object at 0x0000028CEB1C6A70>
File "E:\Code\EquipmentRegistryDataPlatform\app\core\middlewares.py", line 120, in after_request
api_log_obj.response_code = resp.get("code", "-1")
│ │ └ None
│ └ None
└ <APILog: 11321>
AttributeError: 'NoneType' object has no attribute 'get'