We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: write tcp [::1]:8085->[::1]:41908: write: broken pipe
goroutine 45712 [running]: github.com/gin-gonic/gin/render.JSON.Render(...) /home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/render/json.go:58 github.com/gin-gonic/gin.(*Context).Render(0xc000e99100, 0x1f4, {0xa04bf0, 0xc000025470}) /home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:910 +0xf8 github.com/gin-gonic/gin.(*Context).JSON(...) /home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:953 github.com/gin-gonic/gin.(*Context).AbortWithStatusJSON(...) /home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:204 github.com/armanokka/transloapi/cmd/api/v3.(*App).BatchTranslateHandler.func2() /home/arman/rapidapi-translate/cmd/api/v3/batch_translate.go:129 +0x509 golang.org/x/sync/errgroup.(*Group).Go.func1() /home/arman/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64 created by golang.org/x/sync/errgroup.(*Group).Go /home/arman/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
Content of /home/arman/rapidapi-translate/cmd/api/v3/batch_translate.go:129: c.AbortWithStatusJSON(500, ErrInternal) c == *gin.Context
c.AbortWithStatusJSON(500, ErrInternal)
And I have: r := gin.New() r.Use(gin.Recovery()) but I am getting panic
The text was updated successfully, but these errors were encountered:
Slava, hello. I tried to fix this in issue: #2150
Check it, please. Maybe it solves your issue. Now, we are waiting for our maintainers to approve #2150
Sorry, something went wrong.
@eeonevision yes, it solves my issue.
I'm surprised your pull request hasn't been accepted since 2019. However, many people have a similar problem.
I am shocked by the creators of gin.
@eeonevision yes, it solves my issue. I'm surprised your pull request hasn't been accepted since 2019. However, many people have a similar problem. I am shocked by the creators of gin.
I met the same problem.
Now the committed codes of issue #2150 is merged. Try to update gin to the version v1.9.0 which declared that issue #2150 is fixed.
No branches or pull requests
Description
panic: write tcp [::1]:8085->[::1]:41908: write: broken pipe
goroutine 45712 [running]:
github.com/gin-gonic/gin/render.JSON.Render(...)
/home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/render/json.go:58
github.com/gin-gonic/gin.(*Context).Render(0xc000e99100, 0x1f4, {0xa04bf0, 0xc000025470})
/home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:910 +0xf8
github.com/gin-gonic/gin.(*Context).JSON(...)
/home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:953
github.com/gin-gonic/gin.(*Context).AbortWithStatusJSON(...)
/home/arman/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:204
github.com/armanokka/transloapi/cmd/api/v3.(*App).BatchTranslateHandler.func2()
/home/arman/rapidapi-translate/cmd/api/v3/batch_translate.go:129 +0x509
golang.org/x/sync/errgroup.(*Group).Go.func1()
/home/arman/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:75 +0x64
created by golang.org/x/sync/errgroup.(*Group).Go
/home/arman/go/pkg/mod/golang.org/x/[email protected]/errgroup/errgroup.go:72 +0xa5
Content of /home/arman/rapidapi-translate/cmd/api/v3/batch_translate.go:129:
c.AbortWithStatusJSON(500, ErrInternal)
c == *gin.Context
And I have:
r := gin.New()
r.Use(gin.Recovery())
but I am getting panic
Environment
The text was updated successfully, but these errors were encountered: