When I use @output(id=id) to assign an ID, it triggers a 404 error.
INFO: 127.0.0.1:55235 - "GET /session/xxxxxxxxx/download/download4?w= HTTP/1.1" 404 Not Found
I thought the first example was just a demo showing how to throw an error.
But when I edited the code to the second version, it still resulted in a 404 error.
source link
First:
@output(id="download4")
@render.download(filename="failuretest.txt")
async def _():
yield "hello"
raise Exception("This error was caused intentionally")
Second
@output(id="download4")
@render.download(filename="failuretest.txt")
async def _():
yield "hello"