Skip to content

Error handler for async functions #401

Open

Description

@cdco-busunkim

Hello!

The README shows a error handler for the standard functions framework.

import functions_framework


@functions_framework.errorhandler(ZeroDivisionError)
def handle_zero_division(e):
    return "I'm a teapot", 418


def function(request):
    1 / 0
    return "Success", 200

Is there something similar available for the newer async functions?

Activity

  1. taeold commented on Nov 4, 2025

    @taeold
    Contributor

    Hey @cdco-busunkim - thanks for filing the issue.

    There isn't an API to register custom error handler for async functions API yet. PRs welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions