mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2494] http穿透以后报错[400: Bad Request] #1981
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1981
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fengcharles on GitHub (Jul 23, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2494
Version:
frps-0.37.0 frpc-0.37.0
[REQUIRED] What operating system and processor architecture are you using
OS: ubuntu18.04
CPU architecture:
[REQUIRED] description of errors
服务器,客户端都配置好,穿透了很多内网的http的网站,且半年内都一直在正常运行。
今天想新增一个http穿透 访问局域网的 Home assistant。
Home assistant 本地可以正常访问,穿透以后一直报错,访问以后页面显示报错 400: Bad Request 后台没有错误日志显示(或者我没有打开相关的错误日志级别),我目前调的是DEBUG。
链路都是正常的,同样的域名切换到其他网站,都是可以穿透的。
无法准确定位问题原因。
@fengcharles commented on GitHub (Jul 23, 2021):
会不会是websocket的原因?
@blizard863 commented on GitHub (Jul 25, 2021):
提供配置,还有一些日志。
@blizard863 commented on GitHub (Jul 25, 2021):
你怀疑这个,可以自己去验证一下。
@fengcharles commented on GitHub (Jul 28, 2021):
不是frpc的问题,应该是服务的问题
@Trace-star commented on GitHub (Mar 18, 2023):
我遇到了跟你一样的问题,请问你是怎么解决的
@leruge commented on GitHub (Apr 19, 2023):
如何解决的,我也有同样的问题?
@fengcharles commented on GitHub (Apr 20, 2023):
这个跟 Frp 没关系,网站自身的原因
@tfpdc commented on GitHub (Jun 11, 2023):
我也遇到这个问题,发现可以用tcp来解决

在configuration.yaml里面添加一段内容
frc.ini里面写

这样就可以ip+端口或者域名+端口来访问
@ChanLicher commented on GitHub (Nov 25, 2023):
HA 想使用内网穿透还得再 configuration.yaml 文件里加上这一段:
x 的部分根据填写自己服务器 ip 和本地 ip