http server r.Request.ParseForm failed

2022-12-06 21:39:10 +08:00
 zhengjianyang
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
这是为啥啊、没用过亚马逊云的机器、这个配置很拉吗
788 次点击
所在节点    Go 编程语言
2 条回复
dashab
2022-12-06 21:57:09 +08:00
您这是干什么的报的错?没看懂
zhengjianyang
2022-12-06 22:00:28 +08:00
@dashab http 服务取 post 参数、报错位置
func remote(r *ghttp.Request) {
word := r.Get("word", "").String()

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/900613

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX