GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Inconsistency in the server response status between emulator and the deployed cloud function

Open
#199 0 comments 2 reactions 0 assignees View on GitHub
enhancement P3
Dominant language
Python
Stars
968
Forks
128
PR merge metrics
No merged PRs in 30d

Description

According to [Retrying event-driven functions - Google Cloud Functions Documentation](https://cloud.google.com/functions/docs/bestpractices/retries):
> When retries are not enabled for a function, which is the default, the function always reports that it executed successfully, and returns 200 OK response. This occurs even if the function encountered an error.

There's no way to replicate this behavior locally. Please add a CLI flag like `--no-error` which would replicate this behavior.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.