diff --git a/test.py b/test.py index 6190a8e..aa787e0 100644 --- a/test.py +++ b/test.py @@ -72,7 +72,7 @@ async def startup(username, device): await task_start(username, device) return BaseResponse(code=200, msg="success") except Exception as e: - return BaseResponse(code=500, msg=e) + return BaseResponse(code=500, msg=str(e)) def push_stream(username, device): @@ -90,4 +90,4 @@ def close_stream(username, device): if __name__ == '__main__': broker = 'mqtt.lihaink.cn' port = 1883 - uvicorn.run(app, host="127.0.0.1", port=8000) + uvicorn.run(app, host="127.0.0.1", port=8001)