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
Error code PROTOCOL_INCORRECT_PACKET_SEQUENCE #1249
Comments
It could possibly be a bug here or some kind of incompatibility with that server. Can you add |
Yes, probably it's an incompatibility with the server. I'm thinking that the logging tool of AWS Lambda isn't the best. On my local environment I get the entire output of the mysql library debug mode. But the AWS lambda log on the server only throw this:
I think that it will not help too much, I can't figure out how to get the entire debug log with this tool. Any ideas? |
Unfortunately I have never used those systems, so don't have any tips for how to get the logs. Please keep me posted with the full logs when you can get them. If you cannot figure out how to get them, then if you can debug the code, you could potentially just send a PR to address the issue as an alternative :) |
I was also having this error, it resulted from not excluding the node-mysql module from the browserify builder step. Edit the awsm.json of the lambda to exclude mysql, and then put the path to the node-mysql module in the includePath. |
@jewella you are right it worked. I read that this plugin have problem with the browserify library, but I could not find the way to exclude it correctly. Thank you very much. |
Hi everyone.
I'm having difficulties implementing a simple query on a AWS Lambda NodeJS (with JAWS framework). Running it on local it works, but when I upload it to AWS and then try to run it using the API Gateway endpoint, I got this error:
I can't find any response on google, stackoverflow or issues on git about this error. And I can't figure out what I'm doing wrong.
This is what I'm trying.
The text was updated successfully, but these errors were encountered: