apex / gateway

Drop-in replacement for Go net/http when running in AWS Lambda & API Gateway
MIT License
652 stars 72 forks source link

Maximum (50) redirects followed #43

Open kaihendry opened 3 years ago

kaihendry commented 3 years ago

I switched my API to use the cheaper HttpApi type from the REST protocol type https://s.natalian.org/2021-04-19/httpApi.txt which also has JWT Authorizer type support and now I get a redirect loop.

I guess it's something to do with the different interface PayloadFormatVersion 2.0?

earthboundkid commented 3 years ago

It seems like you have something misconfigured, which is causing circular redirects. "Maximum redirects followed" isn't an error itself; it's a message telling you that you have an error in how your system is setup, so your client has to bailout to prevent an infinite loop. Is there any evidence this has anything to do with the gateway package itself? AFAIK, gateway does not issue any redirect messages itself.

kaihendry commented 3 years ago

Are you able to get Type: HttpApi working under apex/gateway?