GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-python

Add actionable guidance on payload validation error

Đang mở
#119 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement
Ngôn ngữ chính
Python
Star
968
Fork
128
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.