-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Apollo Server 2 engine reporting error: o.request.headers is not iterable #1301
Comments
@BHesseldieck Thank you for bringing it up! I've run tests locally/with the sam deployment and it seems like we aren't seeing the error as a deployment with the serverless framework. We've added wrapper around the headers contained in event with #1313. If you want to take a look, please do. We should have another release for you soon. |
@BHesseldieck This should be fixed with |
Thank you so much for the response!! Sorry for replying late, I was busy with other cache setups and experiments. I think below setup worked, still not sure if its right, will figure it out in coming days. One more catch is that we missed configuring the AWS NAT gateway to allow to communicate with the internet!
|
@BHesseldieck Great to hear! Super odd that the lambda doesn't start without those options. Can you try removing |
@evans I'm having the same issue using the express setup, just upgraded so should be on the latest versions respectively. Any idea why this is happening? The fix that @BHesseldieck posted above seems to be working for me as well ... |
Hey guys,
we are running into an issue with apollo-server-lambda 2 (RC). Unfortunately it does not report to our engine dashboard and even throws an error when deployed (on local everything works fine). Google didn't provide any hints to a solution. We are deploying the lambda using the Serverless framework.
The returned error on any query is:
Our handler looks like the following:
Does anyone have an idea what causes the problem and/or how to solve it? Queries work if the properties privateHeaders and privateVariables are set as true, but then it does not report to the engine dashboard.
Thanks for your efforts!
Best,
Ben
The text was updated successfully, but these errors were encountered: