-
Notifications
You must be signed in to change notification settings - Fork 380
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
Help deciphering error message #242
Comments
Hey @Scott-Hoefer-Spycloud, thanks for reaching out 🙏 It looks like the function you're trying to power-tune is returning an error when invoked. And it looks like it's returning that long list of number as invocation response. Basically, Lambda Power Tuning assumes that your function runs without raising errors. In case of errors, it assumes that something went wrong and it stops power-tuning. A few questions:
|
@alexcasalboni Thanks for the response
|
Uh, that is interesting 🤔 The invocation results aren't really manipulated though. Since you aren't using any pre/post-processor, the list of numbers is simply A few more questions:
|
{
|
@alexcasalboni So I switched from a multiple weighted payload to a single payload input and it works now, no other change to the payload was made. Not sure what the issue is with weighted payloads but I can use it with just one at a time for now. Feel free to close this if you want or ask further questions. Thanks! |
Thanks, that makes a lot of sense now 🚀 It definitely looks like an issue and we've recently changed how weighted payloads are treated recently so it could be a regression. Could you please share with us the structure of the weighted payload you were using? (obfuscating the actual payload, if needed) FYI @andrestoll |
|
Can you check the logs of the "executor" function if the event payload for the invocation is what you expect? Is there a difference when using a weighted payload and single payload? Maybe you can share as well |
Btw it seems you are passing in |
@andrestoll Payload isn't really empty when I run it I just can't post the contents here. I can check the executor logs and get back to you |
@Scott-Hoefer-Spycloud I cannot reproduce the error, if you can let me know what caused the function to be tuned to fail we might have some more ideas. |
@andrestoll I am not sure what is causing the error as the error message is less than helpful and it works when I invoke the lambda manually with the same input. It does seem to be tied to one input whereas others work, but again I am unable to tell what the issue is without a meaningful error message. I did confirm that the weighted payload works if I remove the aforementioned input however |
@Scott-Hoefer-Spycloud If you go to the log group |
I was having the same issue, and for me the problem turned out to be that my Lambda function was timing out. I actually went in and modified the executor's code to dump the |
Thank you @lachriz-aws this sounds like a great step forward! I'll make sure to investigate if that's reproducible with any function that times out 👌 |
@Scott-Hoefer-Spycloud @lachriz-aws we have a working implementation here (merging soon): #247 It will show the proper error message instead of the weird array buffer :) |
The fix has been merged 🎉 Closing this for now, let me know if you still encounter the problem. |
Running into a weird error message that I can't decipher when trying to run the state machine, happens with any payload. Seems to originate from the utils.invokeLambdaWithProcessors function
The text was updated successfully, but these errors were encountered: