Skip to content

Can not assign ID through @output(id=id) in render.download #310

@weichisyu

Description

@weichisyu

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions