Skip to content

Internal Server Error will occur if I add type annotation to the route functions #1049

@studio3104

Description

@studio3104

When I deployed after giving type annotation to my existing implementation as below, Internal Server Error occurred at all endpoints.

@app.route('/')
def index() -> Dict[str, str]:
    return {'hello': 'world'}

My deployment is done via a pipeline based on the definition generated by chalice generate-pipeline command.

Though I created a new environment to try to reproduce my issue, I could not make it reproduced. (I mean I could access to my API normally even if the method has type annotation.)

If I re-deploy the code that was deleted the type annotation via the existing pipeline, I can access normally without facing an Internal Server Error.

Submitting a reproduction code is difficult for me, but is there anything I can confirm else?

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