Skip to content
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

Google Cloud: Invalid character in header content ["Authorization"] #732

Closed
0xDaksh opened this issue Sep 2, 2018 · 8 comments
Closed
Labels
difficulty: unknown or n/a fix is unknown in difficulty status: work in progress Twilio or the community is in the process of implementing type: question question directed at the library

Comments

@0xDaksh
Copy link
Contributor

0xDaksh commented Sep 2, 2018

Issue Summary

I'm getting the following error: Invalid character in header content ["Authorization"] on google cloud, on my personal device it's not showing that error.

@0xDaksh 0xDaksh closed this as completed Sep 2, 2018
@thinkingserious thinkingserious added type: question question directed at the library status: help wanted requesting help from the community difficulty: unknown or n/a fix is unknown in difficulty labels Sep 5, 2018
@thinkingserious
Copy link
Contributor

Hello @DakshMiglani,

How did you solve your issue?

With Best Regards,

Elmer

@0xDaksh
Copy link
Contributor Author

0xDaksh commented Sep 23, 2018

Yea, so I was running my emailing service on kubernetes which was also supplying it the sendgrid key via secrets, But I didn't realise that it was also adding a '\n' character to it.

That's why later, when I checked the sendgrid api key, it looked like:
"SG_SOME-KEY-HERE\n".

So I stripped that newline character and boom it started working.

@thinkingserious
Copy link
Contributor

Thanks @DakshMiglani! Hopefully your solution will help others experiencing the same issue.

Would you mind adding a PR to our TROUBLESHOOTING.md?

@0xDaksh
Copy link
Contributor Author

0xDaksh commented Oct 5, 2018

@thinkingserious sure.

@devchas devchas added status: work in progress Twilio or the community is in the process of implementing and removed status: help wanted requesting help from the community type: question question directed at the library labels Oct 11, 2018
@thinkingserious
Copy link
Contributor

Thank you @DakshMiglani!

@childish-sambino childish-sambino added the type: question question directed at the library label Feb 3, 2020
@Existenziell
Copy link

Existenziell commented Nov 19, 2021

That saved my day... have been searching the error for hours! thanks!

For me: In Vercel Environment Variables - hit Enter - add a \n to SENDGRID_API_KEY... lol

@0xDaksh
Copy link
Contributor Author

0xDaksh commented Nov 21, 2021

@Existenziell glad this was helpful! such a pain to deal with such tiny issues!

@shadab14meb346
Copy link

That saved my day... have been searching the error for hours! thanks!

For me: In Vercel Environment Variables - hit Enter - add a \n to SENDGRID_API_KEY... lol

I think this is the issue I am having but not able to understand what do you mean by hit enter. and add a \n.
Could you please give an example of the value which is supposed to be passed in vercel.
Currently, my value for SENDGRID_API_KEY is something like in this pattern SG.part1.part2-part3
I am passing the value in vercel as this which is giving the error "SG.part1.part2-part3".
Could you please help how should I pass the value
The shown way to pass environment variable below in the pic is giving error.
screenshot-newtab-2021 12 31-22_38_04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty: unknown or n/a fix is unknown in difficulty status: work in progress Twilio or the community is in the process of implementing type: question question directed at the library
Projects
None yet
Development

No branches or pull requests

6 participants