Home
Sign Up
Sign In
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member
Sign In
The Go Programming Language
›
http://golang.org/
›
Go Playground
Go Projects
›
Revel Web Framework
Advertisement
V2EX
›
Go 编程语言
http server r.Request.ParseForm failed
zhengjianyang
·
Dec 6, 2022
· 1499 views
This topic created in 1242 days ago, the information mentioned may be changed or developed.
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 replies
•
2022-12-06 22:00:28 +08:00
1
dashab
Dec 6, 2022
您这是干什么的报的错?没看懂
2
zhengjianyang
OP
Dec 6, 2022
@
dashab
http 服务取 post 参数、报错位置
func remote(r *ghttp.Request) {
word := r.Get("word", "").String()
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Solana
·
2553 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 39ms ·
UTC 12:55
·
PVG 20:55
·
LAX 05:55
·
JFK 08:55
♥ Do have faith in what you're doing.
❯