http server r.Request.ParseForm failed - V2EX
首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
广告
V2EX
Go 编程语言
http server r.Request.ParseForm failed
zhengjianyang
2022-12-06 21:39:10 +08:00
1340 次点击
这是一个创建于 1109 天前的主题,其中的信息可能已经有所发展或是发生改变。
Stack:
1. r.Request.ParseForm failed
1).
github.com/gogf/gf/v2/net/ghttp.(*Request).parseForm
2).
github.com/gogf/gf/v2/net/ghttp.(*Request).GetForm
3).
github.com/gogf/gf/v2/net/ghttp.(*Request).GetRequest
4).
github.com/gogf/gf/v2/net/ghttp.(*Request).Get
5). main.remote
6).
github.com/gogf/gf/v2/net/ghttp.(*middleware).callHandlerFunc.func1
7).
github.com/gogf/gf/v2/net/ghttp.niceCallFunc
8).
github.com/gogf/gf/v2/net/ghttp.(*middleware).callHandlerFunc
9).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.4
10).
github.com/gogf/gf/v2/net/ghttp.niceCallFunc
11).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
12).
github.com/gogf/gf/v2/util/gutil.TryCatch
13).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
14). main.middlewareErrorHandler
16).
github.com/gogf/gf/v2/net/ghttp.niceCallFunc
17).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
18).
github.com/gogf/gf/v2/util/gutil.TryCatch
19).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
20).
github.com/gogf/gf/v2/net/ghttp.internalMiddlewareServerTracing
21).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1.5
22).
github.com/gogf/gf/v2/net/ghttp.niceCallFunc
23).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next.func1
24).
github.com/gogf/gf/v2/util/gutil.TryCatch
25).
github.com/gogf/gf/v2/net/ghttp.(*middleware).Next
26).
github.com/gogf/gf/v2/net/ghttp.(*Server).ServeHTTP
2. read tcp x.x.x.x:xxxx->x.x.x.x:40302: i/o timeout
这个报错有点看不懂、取个 post 参数为什么还能 IO 超时
之前在原机器运行了很多天都没有出现过这种错误、今天换到了亚马逊云上不一会就会出这个错误、并且还挺频繁的
之前是在国内的一些机器、运行都挺稳定的 cpu 和内存占用都不高、现在换到亚马逊云感觉占用好高、实例类型用的 c5.xlarge
这是为啥啊、没用过亚马逊云的机器、这个配置很拉吗
middleware
Next
request
func1
2 条回复
2022-12-06 22:00:28 +08:00
1
dashab
2022-12-06 21:57:09 +08:00
您这是干什么的报的错?没看懂
2
zhengjianyang
OP
2022-12-06 22:00:28 +08:00
@
dashab
http 服务取 post 参数、报错位置
func remote(r *ghttp.Request) {
word := r.Get("word", "").String()
关于
帮助文档
自助推广系统
博客
API
FAQ
Solana
2716 人在线
最高记录 6679
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 21ms
UTC 02:27
PVG 10:27
LAX 18:27
JFK 21:27
Do have faith in what you're doing.
ubao
msn
snddm
index
pchome
yahoo
rakuten
mypaper
meadowduck
bidyahoo
youbao
zxmzxm
asda
bnvcg
cvbfg
dfscv
mmhjk
xxddc
yybgb
zznbn
ccubao
uaitu
acv
GXCV
ET
GDG
YH
FG
BCVB
FJFH
CBRE
CBC
GDG
ET54
WRWR
RWER
WREW
WRWER
RWER
SDG
EW
SF
DSFSF
fbbs
ubao
fhd
dfg
ewr
dg
df
ewwr
ewwr
et
ruyut
utut
dfg
fgd
gdfgt
etg
dfgt
dfgd
ert4
gd
fgg
wr
235
wer3
we
vsdf
sdf
gdf
ert
xcv
sdf
rwer
hfd
dfg
cvb
rwf
afb
dfh
jgh
bmn
lgh
rty
gfds
cxv
xcv
xcs
vdas
fdf
fgd
cv
sdf
tert
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
sdf
shasha9178
shasha9178
shasha9178
shasha9178
shasha9178
liflif2
liflif2
liflif2
liflif2
liflif2
liblib3
liblib3
liblib3
liblib3
liblib3
zhazha444
zhazha444
zhazha444
zhazha444
zhazha444
dende5
dende
denden
denden2
denden21
fenfen9
fenf619
fen619
fenfe9
fe619
sdf
sdf
sdf
sdf
sdf
zhazh90
zhazh0
zhaa50
zha90
zh590
zho
zhoz
zhozh
zhozho
zhozho2
lislis
lls95
lili95
lils5
liss9
sdf0ty987
sdft876
sdft9876
sdf09876
sd0t9876
sdf0ty98
sdf0976
sdf0ty986
sdf0ty96
sdf0t76
sdf0876
df0ty98
sf0t876
sd0ty76
sdy76
sdf76
sdf0t76
sdf0ty9
sdf0ty98
sdf0ty987
sdf0ty98
sdf6676
sdf876
sd876
sd876
sdf6
sdf6
sdf9876
sdf0t
sdf06
sdf0ty9776
sdf0ty9776
sdf0ty76
sdf8876
sdf0t
sd6
sdf06
s688876
sd688
sdf86