[GH-ISSUE #420] 测试微信支付回调时不成功 #313

Closed
opened 2026-05-05 12:07:01 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @void-soul on GitHub (Aug 8, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/420

服务端配置如下:

[common]
bind_addr = 0.0.0.0
bind_port = 8080
dashboard_port = 9080
dashboard_user = root
dashboard_pwd = ***
log_level = debug
log_max_days = 3
privilege_token = ***
vhost_http_port = 80
vhost_https_port = 443
[http]
type = http
custom_domains = **.com

[https]
type = https
custom_domains = **.com

客户端配置:

[common]
server_addr =****.com
server_port = 8080
log_level = debug
log_max_days = 3
privilege_token = ***
admin_addr = 10.0.0.222
admin_port = 7400
admin_user = admin
admin_pwd = admin
 
[web-test-pay]
type = http
local_port = 9066
custom_domains = ***.com
locations = /

启动之后,同样的地址浏览器访问没有问题,但微信回调时,服务端 debug日志提示:

2017/08/08 18:47:03 [W] [vhost.go:129] get hostname from http/https request error: malformed HTTP version " HTTP/1.1"
2017/08/08 18:47:06 [D] [control.go:327] [7bcd9c74ff666bb2] receive heartbeat
2017/08/08 18:47:16 [D] [control.go:327] [7e5d44f125259510] receive heartbeat
2017/08/08 18:47:18 [W] [vhost.go:129] get hostname from http/https request error: malformed HTTP version " HTTP/1.1"
2017/08/08 18:47:24 [D] [control.go:327] [e5479761e241adc6] receive heartbeat
2017/08/08 18:47:25 [D] [control.go:327] [8d0f3928411b9133] receive heartbeat
2017/08/08 18:47:32 [D] [control.go:327] [95e8e3ff41799649] receive heartbeat
2017/08/08 18:47:35 [W] [vhost.go:129] get hostname from http/https request error: malformed HTTP version " HTTP/1.1"

关键字:get hostname from http/https request error: malformed HTTP version " HTTP/1.1"
请问是什么原因造成的?

Originally created by @void-soul on GitHub (Aug 8, 2017). Original GitHub issue: https://github.com/fatedier/frp/issues/420 服务端配置如下: ```bash [common] bind_addr = 0.0.0.0 bind_port = 8080 dashboard_port = 9080 dashboard_user = root dashboard_pwd = *** log_level = debug log_max_days = 3 privilege_token = *** vhost_http_port = 80 vhost_https_port = 443 [http] type = http custom_domains = **.com [https] type = https custom_domains = **.com ``` 客户端配置: ```bash [common] server_addr =****.com server_port = 8080 log_level = debug log_max_days = 3 privilege_token = *** admin_addr = 10.0.0.222 admin_port = 7400 admin_user = admin admin_pwd = admin [web-test-pay] type = http local_port = 9066 custom_domains = ***.com locations = / ``` 启动之后,同样的地址浏览器访问没有问题,但微信回调时,服务端 `debug`日志提示: ```xml 2017/08/08 18:47:03 [W] [vhost.go:129] get hostname from http/https request error: malformed HTTP version " HTTP/1.1" 2017/08/08 18:47:06 [D] [control.go:327] [7bcd9c74ff666bb2] receive heartbeat 2017/08/08 18:47:16 [D] [control.go:327] [7e5d44f125259510] receive heartbeat 2017/08/08 18:47:18 [W] [vhost.go:129] get hostname from http/https request error: malformed HTTP version " HTTP/1.1" 2017/08/08 18:47:24 [D] [control.go:327] [e5479761e241adc6] receive heartbeat 2017/08/08 18:47:25 [D] [control.go:327] [8d0f3928411b9133] receive heartbeat 2017/08/08 18:47:32 [D] [control.go:327] [95e8e3ff41799649] receive heartbeat 2017/08/08 18:47:35 [W] [vhost.go:129] get hostname from http/https request error: malformed HTTP version " HTTP/1.1" ``` 关键字:`get hostname from http/https request error: malformed HTTP version " HTTP/1.1"` 请问是什么原因造成的?
Author
Owner

@xjdata commented on GitHub (Oct 28, 2017):

请问你的问题解决了吗? 是如何解决的? 谢谢。

<!-- gh-comment-id:340141367 --> @xjdata commented on GitHub (Oct 28, 2017): 请问你的问题解决了吗? 是如何解决的? 谢谢。
Author
Owner

@void-soul commented on GitHub (Oct 30, 2017):

额,很尴尬的问题,配置微信支付请求路径的地方,后面多一个空格 -_-

<!-- gh-comment-id:340394133 --> @void-soul commented on GitHub (Oct 30, 2017): 额,很尴尬的问题,配置微信支付请求路径的地方,后面多一个空格 -_-
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#313
No description provided.