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
Serverless Error: The header content contains invalid characters #3202
Comments
Hey @j-lowry thanks for opening. Could you please share your |
handler.py:
|
serverless.yml:
|
@j-lowry thanks for the response. Unfortunately the |
Woops, sorry about that. Below is the serverless.yml:
|
Hmm. That's odd 🤔 So in essence you've done the following:
And after that you saw the error? I tried to reproduce it locally but was not successfull... |
Yes, that is what I saw. I just recreated it again. I am going to go through my local workstation. I running npm from homebrew, not sure if there is some issue there. |
I have seen this before in another system with the file being encoded with |
@andymac4182 thanks for the pointer. Good idea to check that! @j-lowry so do you still get the same error if you remove the old service and create a new one from scratch and then deploy that? |
Unfortunately yes. |
Hey @j-lowry There seems to be nothing wrong with your I found this comment about Maybe it has something todo how your credentials are setup on your local machine... |
Over the weekend I got it working on a linux host with the same credentials. I nuked my $HOME/.aws/ directory to test with just environment variables and still getting the same error message. I wonder if I have a "/" in the secret_access_key and it is throwing everything off. |
Yeah, I just regenerated a secret access key without a "/" in it and it works now. |
Thanks for reproducing @j-lowry 👍 That's really interesting! Adding the |
Closing this for now since it's an edge case and might be something AWS should fix... |
Hi, I am facing the very same error. But I don't have "/" in my access key or secret key either. I have also done the same: Serverless Error --------------------------------------- ServerlessError: The header content contains invalid characters Get Support -------------------------------------------- Your Environment Information ----------------------------- |
Well, it seems the problem occurs if you have some sort of special characters in you access key secret. I had a "+" in it. I was able to successfully generate another one without any special characters i.e. all alphabets and it worked then. |
@waqasiftikhar2 are you sure about it? because I too have + in my secret access and I am getting the same error. |
I am running into this error as well. I see the error when running If it matters, I'm running this sls command from a Python (2.7) script. |
Hello, I ran into this error also. Removing both fixed the issue. |
This is a Bug Report
Description
On running a test deployment received the error message
The expected behavior was either a successful deployment or at least an error message from AWS about the relating to the configuration.
Additional Data
The text was updated successfully, but these errors were encountered: