krasimir / octomments

A small library that offers GitHub issues as comments for your site/blog
https://ocs.now.sh/
MIT License
284 stars 15 forks source link

Error: "Invalid character in header content ["Location"]" #36

Open alex-pancho opened 3 years ago

alex-pancho commented 3 years ago

I add octomments to my repo https://github.com/alex-pancho/worm_ru, my github pages with plugin is https://alex-pancho.github.io/worm_ru/001_%D0%93%D0%BB%D0%B0%D0%B2%D0%B0_1.01.html

When I try send comment I get errror: {"error": "Invalid character in header content ['Location']"}

Session protocol is:

GET https://ocs.now.sh/octomments/token?redirect=https://alex-pancho.github.io/worm_ru/001_%25D0%2593%25D0%25BB%25D0%25B0%25D0%25B2%25D0%25B0_1.01.html GET https://github.com/login/oauth/authorize?client_id=Iv1.c929bff56a0bafb5&redirect_uri=https://ocs.now.sh/octomments/token?r=https://alex-pancho.github.io/worm_ru/001_%D0%93%D0%BB%D0%B0%D0%B2%D0%B0_1.01.html&scope=public_repo GET https://ocs.now.sh/octomments/token?r=https://alex-pancho.github.io/worm_ru/001_%D0%93%D0%BB%D0%B0%D0%B2%D0%B0_1.01.html&code=dc57c93be87d1c8056a0

krasimir commented 3 years ago

Hey @alex-pancho,

did you install the Octomments app to your profile and did you give access to worm_ru repo?

alex-pancho commented 3 years ago

yes

Image

alex-pancho commented 3 years ago

can this be related to the use of Cyrillic?

krasimir commented 3 years ago

Now when you are saying it. Indeed that could be the reason.

alex-pancho commented 3 years ago

so, you have a task for fixing, I checked and with Latin characters all is well