aws / aws/serverless-java-container
AwsProxyResponse class is generating response JSON which is rejected by API gateway with Malformed error
未關閉
need feedback
- 主要語言
- Java
- 星號
- 1.6k
- 分支
- 574
- PR 合併指標
- 30 天內沒有已合併 PR
描述
We are calling java lambda from api gateway and in cloudwatch logs i can see internal server error is coming,
After going through the logs and support team i got to know that AwsProxyResponse class is generating response JSON which is rejected by API gateway with Malformed error
Json generated is using field name base64Encoded instead of isBase64Encoded
貢獻指南
研究方向
首先定位 AwsProxyResponse 類別,並檢查它如何為 API Gateway 序列化回應 JSON。根據 issue 的預期值驗證產生的欄位名稱,並在回應使用 isBase64Encoded 而非 base64Encoded 且避免報告的 Malformed 錯誤時,視為工作完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- aws, java
- 領域
- api, cloud
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100