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.
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!
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.