开发者社区 问答 正文

github中webhook的url出错 400 请求报错 

github中webhook的url出错We couldn’t deliver this payload: Invalid host.

我在github上面有两个代码仓库,a仓库是我的网页代码,b仓库里面的update.php是我的自动化脚本语言,我希望能在push代码到a仓库的时候去调用b里面的update.php,在使用github的webhook功能的时候,我将仓库a的webhook的Payload URL填为http://localhost/b/update.php,但a的Webhoooks&Services却出现如下图情况,请大神指教这个怎么解决

我用的是nginx+php的环境

展开
收起
kun坤 2020-05-29 11:52:37 1793 分享 版权
1 条回答
写回答
取消 提交回答
  • 这个怎么能写localhost呢?看下Git@OSC的hook文档吧:http://git.oschina.net/oschina/git-osc/wikis/HOOK%E9%92%A9%E5%AD%90

    2020-05-29 11:52:43
    赞同 展开评论
问答分类:
PHP
问答地址: