Sendgrid-nodejs: Google Cloud: Invalid character in header content ["Authorization"]

Created on 2 Sep 2018  路  5Comments  路  Source: sendgrid/sendgrid-nodejs

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.

unknown or a work in progress question

Most helpful comment

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.

All 5 comments

Hello @DakshMiglani,

How did you solve your issue?

With Best Regards,

Elmer

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.

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

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

@thinkingserious sure.

Thank you @DakshMiglani!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

egges picture egges  路  3Comments

thinkingserious picture thinkingserious  路  4Comments

wooyah picture wooyah  路  4Comments

zvone187 picture zvone187  路  4Comments

umarhussain15 picture umarhussain15  路  3Comments