sanic-org / sanic

Accelerate your web app development | Build fast. Run fast.
https://sanic.dev
MIT License
18.11k stars 1.55k forks source link

No longer works in newer version #1855

Closed zzxjl1 closed 4 years ago

zzxjl1 commented 4 years ago
@app.route('/live2d/<file>')
@app.route('/live2d/model')
@app.route('/live2d/motions/<file2>')               
async def live2d(request,file=None,file2=None):
ashleysommer commented 4 years ago

@zzxjl1 Which version I sanic are you using? I believe this is a duplicate of https://github.com/huge-success/sanic/issues/1742

This is broken in v19.12.0, and v19.12.2. Is fixed (should be) in v20.03, and fix will also be in an upcoming release v19.12.3

ashleysommer commented 4 years ago

Try this workaround until you get the bugfix: https://github.com/huge-success/sanic/issues/1742#issuecomment-572050336

zzxjl1 commented 4 years ago

🆗,thanks!