GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Add actionable guidance on payload validation error

オープン
#119 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
Python
スター
968
フォーク
128
PR マージ指標
30日以内にマージされた PR はありません

説明

When working with background events locally, it can be difficult to construct the payload correctly. If you are missing the data or context properties, the framework will raise an HTTP 400 response without actionable details. (#83 addresses documentation)

## Current Behavior

The current framework response is:

```

400 Bad Request

Bad Request


The browser (or proxy) sent a request that this server could not understand.


```

The current log output is:
```
127.0.0.1 - - [16/Apr/2021 12:38:05] "POST / HTTP/1.1" 400 -
```

## Expected behavior

Log output should specify payload validation errors down to the property & type level.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。