1302886654860739_个人页

个人头像照片 1302886654860739
个人头像照片
0
2
0

个人介绍

暂无个人介绍

擅长的技术

获得更多能力
通用技术能力:

暂时未有相关通用技术能力~

云产品技术能力:

暂时未有相关云产品技术能力~

阿里云技能认证

详细说明
暂无更多信息

2020年11月

正在加载, 请稍后...
暂无更多信息
  • 回答了问题 2020-11-25

    Python FASTAPI 的 serverless_config 如何设置?

    main.py

    from typing import Optional import uvicorn from fastapi import FastAPI

    app = FastAPI()

    @app.get("/") def read_root(): return {"Hello": "World"}

    @app.get("/items/{item_id}") def read_item(item_id: int, q: Optional[str] = None): return {"item_id": item_id, "q": q}

    if name == 'main':

    uvicorn.run(app='main:app', host='0.0.0.0',port=8020, debug=False, reload=True)
    

    测试报错 erver Error: [2020-11-17 11:19:21 +0000] [1383] [ERROR] Error handling request / Traceback (most recent call last): File "/home/admin/.local/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 134, in handle self.handle_request(listener, req, client, addr) File "/home/admin/.local/lib/python3.6/site-packages/gunicorn/workers/sync.py", line 175, in handle_request respiter = self.wsgi(environ, resp.start_response) TypeError: call() missing 1 required positional argument: 'send'

    踩0 评论0
  • 提交了问题 2020-11-17

    Python FASTAPI 的 serverless_config 如何设置?

正在加载, 请稍后...
滑动查看更多
正在加载, 请稍后...
暂无更多信息