![](/img/trans.png)
[英]How to list files in directory and subdirectory based on filesize greater than 10kb using python
[英]How do I make Google Cloud Functions accept POST requests larger than 10KB?
我創建了一個接受 HTTP 觸發器的小型 Python 程序並將其上傳到 Google Cloud Functions。 當我發出正文小於 10KB 的 POST 請求時,它工作正常。
但是,當我超過此值時,該函數將無法工作並在其響應中發送錯誤代碼 413(請求實體太大)。 有什么我可能會遺漏的嗎? 當我閱讀配額文檔頁面時,它說 Google Cloud Functions 應該允許最多 10MB 的請求,這顯然比我發送的要多得多。
謝謝。
編輯:
解析POST數據的Python代碼如下:
def html_switcher_test(request):
request_args = request.args
if request_args:
report_html = BeautifulSoup(request.args['data'], 'lxml')
下面提供了顯示錯誤的 Postman 請求屏幕截圖:
此公共問題跟蹤器已針對此問題歸檔,並帶有與之相關的內部錯誤。 將通過那里提供進一步的反饋。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.