-
Notifications
You must be signed in to change notification settings - Fork 203
Unable to read requestContext data from event in fiber #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I am currently running in to the same problem using the negroni adapter. I have come to the conclusion that there's a problem with If you're willing to give up the request context you can use To bypass this for now we can add the requestContext to the context manully:
And in your handler, access the requestContext using:
@sapessi (Sorry for the direct tag) is this inteded, and if not, I could provide a fix to add the requestContext on the |
Hi @Shahab96 , I am using same setup Fiber+HTTP(v2) gateway + aws-lambda-go-api-proxy v0.14.0. I implemented a Post /auth/login endpoint as dummy endpoing and I am struggling with next error
All requests are pointing to GET / , I wonder if you had this issue? or you can share more details of your setup? |
I know this is old, but unless I'm blind, I can't see how this is supposed to work.
Now this is where it seems to fall apart: You can see this here: aws-lambda-go-api-proxy/fiber/adapter.go Lines 103 to 166 in 55b7779
At no point in that function is the context stored in the |
I'm currently using fiber for my app and have a handler which will be given data passed through by a custom auth lambda. I am unable to access the lambda event from within my handler however. I'm currently using ProxyWithContextV2 to run my app, but I can't seem to find a way to extract the event data from within the handler.
The text was updated successfully, but these errors were encountered: