Lambda Function URL's "Internal Server Error" on any status other than 200

0

I've been using Function URL's on a Lambda Function and have no issues if sending a 200 response, however the moment I use anything other than a 200 response, I get a 502 Internal Server Error on the calling platform. I've tested across different status codes and its the same. On a 200, all required headers and the body are returned fine. The same code returns the response regardless of the status code so that is clearly working but for some reason the function URL handler doesn't like it. I get no errors on the invocation record within CloudWatch either.

Any ideas why? The documentation (https://docs.amazonaws.cn/en_us/lambda/latest/dg/urls-invocation.html) suggests you can use codes other than 200.

질문됨 2년 전85회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠