wireddown / ghpages-ghcomments

Let GitHub host the comments for your GitHub Pages
http://downtothewire.io/ghpages-ghcomments/
Apache License 2.0
73 stars 7 forks source link

ghpages send POST to pageurl instead github api issue number #28

Closed cryptofuture closed 8 years ago

cryptofuture commented 8 years ago
405 Not Allowed

ghpages send POST to pageurl instead github api issue number for some pages. Wrong one:

Host=blog.hda.me
User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Accept=application/vnd.github.v3.html+json
Accept-Language=en-US,en;q=0.5
Accept-Encoding=gzip, deflate, br
Referer=https://blog.hda.me/2016/07/08/09-hda-down-story-behind-downtime.html
Authorization=token token
Content-Length=15
Content-Type=text/plain;charset=UTF-8
Cookie=; cf_clearance=
DNT=1
Connection=keep-alive
POSTDATA={"body":"Test"}

Correct

Host=api.github.com
User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Accept=application/vnd.github.v3.html+json
Accept-Language=en-US,en;q=0.5
Accept-Encoding=gzip, deflate, br
Referer=https://blog.hda.me/2013/12/07/k9-restore-password.html
Authorization=token token
Content-Length=21
Content-Type=text/plain;charset=UTF-8
Origin=https://blog.hda.me
DNT=1
Connection=keep-alive
POSTDATA={"body":"Test again"}
cryptofuture commented 8 years ago

Was github issue. Fixed by moving to fresh repo.