You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. What version of Go and system type/arch are you using?
2. What version of GoFrame are you using?
3. Can this issue be re-produced with the latest release?
4. What did you do?
5. What did you expect to see?
6. What did you see instead?
The text was updated successfully, but these errors were encountered:
Issues-translate-bot
changed the title
[Question] 我应该如何判断http请求异常是否为 panic 导致??
[Question] How should I judge whether the HTTP request exception is caused by panic? ?
Aug 9, 2023
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
r.GetError() != nil && r.Response.BufferLength() > 0 You can try to judge the combination. It seems that there is a lack of distinction between error types.
参考:
gf/net/ghttp/ghttp_request_middleware.go
Line 50 in 243fe73
gf/util/gutil/gutil.go
Line 46 in 243fe73
1. What version of
Go
and system type/arch are you using?2. What version of
GoFrame
are you using?3. Can this issue be re-produced with the latest release?
4. What did you do?
5. What did you expect to see?
6. What did you see instead?
The text was updated successfully, but these errors were encountered: