aws / aws/serverless-java-container
Getting 302 Found when i invoke from alb but from api gateway its returning response properly
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 574
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
*To help us debug your issue fill in the basic information below using the options provided*
*Serverless Java Container version*: `1.6`
*Implementations:* `Spring Boot 2`
*Framework version:* `SpringBoot 2.2.1.RELEASE`
*Frontend service:* `ALB`
*Deployment method:* `Console`
## Scenario
currently spring boot app running in eks need to to deploy to lambda as containeter, image, the image is deployed suceessfully, when i invoke from api gateway test console, getting exepected results, but when i configure alb and lambda as the target, getting 302 Found, using custom doamin name
## Expected behavior
It has to return the same response how api gateway returns
## Actual behavior
302 Found
## Steps to reproduce
as its official can't provide
## Full log output
2021-08-30 10:28:58.413 INFO 6 --- [ main] c.a.s.p.internal.LambdaContainerHandler : 127.0.0.1 null- null [30/08/2021:10:28:58Z] "POST /dataloader/xxx/start/job null" 302 - "-" "PostmanRuntime/7.28.4" combined
Server: awselb/2.0
Date: Mon, 30 Aug 2021 10:28:58 GMT
Content-Type: application/octet-stream
Content-Length: 0
Location: https://xxxx/dataloader/xxx/start/job?synchronous=true
Connection: keep-alive
```
logs
```
コントリビューションガイド
調査の方向性
まず、Issue に記載された Spring Boot 2.2.1 アプリケーションについて、API Gateway と ALB の設定を比較し、記録された POST リクエストとその 302 Location レスポンスに焦点を当てます。Issue にはソースファイルやテストの名前がなく、再現手順も提供できません。完了条件は、ALB がリダイレクトを返す理由を特定し、API Gateway と同じレスポンスを返すようにすることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- aws, java, spring-boot
- 領域
- api, backend, cloud
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100