V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
The Go Programming Language
http://golang.org/
Go Playground
Go Projects
Revel Web Framework
zhengjianyang
V2EX  ›  Go 编程语言

http server r.Request.ParseForm failed

  •  
  •   zhengjianyang · 2022-12-06 21:39:10 +08:00 · 773 次点击
    这是一个创建于 500 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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
    这是为啥啊、没用过亚马逊云的机器、这个配置很拉吗
    2 条回复    2022-12-06 22:00:28 +08:00
    dashab
        1
    dashab  
       2022-12-06 21:57:09 +08:00
    您这是干什么的报的错?没看懂
    zhengjianyang
        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   ·   我们的愿景   ·   实用小工具   ·   1142 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 23:43 · PVG 07:43 · LAX 16:43 · JFK 19:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.