cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
962 stars 34 forks source link

Invalid header with token_file option #94

Closed amaldonado-hcg closed 2 years ago

amaldonado-hcg commented 2 years ago

Hi there! I'm trying to use the token_file option in the configuration file, but I got this error:

FTL Get "https://api.github.com/user": net/http: invalid header field value "Bearer xyz_token\n" for key Authorization stage=github url=https://github.com

but the same xyz_token works fine on the token option. Am I missing something here?

version 0.10.1, btw.

cooperspencer commented 2 years ago

Hi, I just tried it in my configuration and I get this error message when I have a new line in my token-file. Just remove the second line and it should be fine.

cooperspencer commented 2 years ago

in the next release that shouldn't happen anymore, just implemented a removal for new line characters.

amaldonado-hcg commented 2 years ago

I see the expected behavior now, thanks!