Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Undefined index: HTTP_HOST' #88

Closed
zhongrenze opened this issue Sep 3, 2015 · 3 comments
Closed

'Undefined index: HTTP_HOST' #88

zhongrenze opened this issue Sep 3, 2015 · 3 comments

Comments

@zhongrenze
Copy link

间歇性的报这错(一个小时左右一次,深夜不停)。是不是访问机器人访问的问题啊。
[2015-09-03 16:07:32] local.ERROR: exception 'ErrorException' with message 'Undefined index: HTTP_HOST' in =======\vendor\overtrue\wechat\src\Wechat\Url.php:77
Stack trace:
#0 D:\users\sjq\lostandfound\vendor\overtrue\wechat\src\Wechat\Url.php(77):

[2015-09-03 16:07:32] local.INFO: Request IP::61.151.186.141

@overtrue
Copy link
Collaborator

overtrue commented Sep 3, 2015

HTTP_HOST只要是正常浏览器访问都有啊,除非你是有命令行的方式在访问。

@zhongrenze
Copy link
Author

这个关闭了ip到网站的绑定就没有出现了。估计是有机器访问没有加字段吧。

@puzzle9
Copy link

puzzle9 commented Sep 23, 2021

间歇性的报这错(一个小时左右一次,深夜不停)。是不是访问机器人访问的问题啊。
[2015-09-03 16:07:32] local.ERROR: exception 'ErrorException' with message 'Undefined index: HTTP_HOST' in =======\vendor\overtrue\wechat\src\Wechat\Url.php:77
Stack trace:
#0 D:\users\sjq\lostandfound\vendor\overtrue\wechat\src\Wechat\Url.php(77):

[2015-09-03 16:07:32] local.INFO: Request IP::61.151.186.141

我用 octane 时候也遇到了这个问题
查了查 看到了你15年的回答
然后 最后嘛 我是因为 直接ip 没得这个头部导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants