GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Add actionable guidance on payload validation error

未關閉
#119 1 則留言 0 個 reaction 已指派 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 摘要。