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
Start error reporting when configuring the MethodTimeouts property of Timeout
Name: user.rpc ListenOn: 0.0.0.0:8080 MethodTimeouts: - FullMethod: /system.mail/SendMail Timeout: 30000 // <--- this field
The error content is:
github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processNamedFieldWithValue(0xc000a961e0, {0x3f02410, 0x351ecc0}, {0x351ecc0, 0xc000a824a8, 0x186}, {{0x334ee60, 0xc000a91dd0}, {0x3ed0d80, 0xc000a97300}}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:865 +0x465 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processNamedField(0xc000a961e0, {{0x303675f, 0x7}, {0x0, 0x0}, {0x3f02410, 0x351ecc0}, {0x0, 0x0}, 0x10, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:828 +0xa2e github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processField(0xc000a961e0, {{0x303675f, 0x7}, {0x0, 0x0}, {0x3f02410, 0x351ecc0}, {0x0, 0x0}, 0x10, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:587 +0x205 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).unmarshalWithFullName(0xc000a961e0, {0x3ed0d80, 0xc000a972c0}, {0x3115a00, 0xc000a82498}, {0xc000ae0360, 0x11}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:978 +0x3c7 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).unmarshalValuer(0xc000a961e0, {0x3ec6e20, 0xc000af23c0}, {0x3115a00, 0xc000a82498}, {0xc000ae0360, 0x11}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:114 +0xda github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).unmarshal(0xc000a961e0, {0x32bc860, 0xc000af23c0}, {0x3115a00, 0xc000a82498}, {0xc000ae0360, 0x11}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:96 +0x3a7 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).fillSlice(0xc000a961e0, {0x3f02410, 0x313e340}, {0x313e340, 0xc000ad02f8, 0x197}, {0x313fae0, 0xc000a823f0}, {0xc000a99d50, 0xe}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:200 +0x730 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processFieldNotFromString(0xc000a961e0, {0x3f02410, 0x313e340}, {0x313e340, 0xc000ad02f8, 0x197}, {{0x313fae0, 0xc000a823f0}, {0x3ed0d80, 0xc000a97280}}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:609 +0x387 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processNamedFieldWithValue(0xc000a961e0, {0x3f02410, 0x313e340}, {0x313e340, 0xc000ad02f8, 0x197}, {{0x313fae0, 0xc000a823f0}, {0x3ed0d80, 0xc000a97280}}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:858 +0x2cd github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processNamedField(0xc000a961e0, {{0x30acae3, 0xe}, {0x0, 0x0}, {0x3f02410, 0x313e340}, {0x30acaf2, 0x10}, 0x2f0, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:828 +0xa2e github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processField(0xc000a961e0, {{0x30acae3, 0xe}, {0x0, 0x0}, {0x3f02410, 0x313e340}, {0x30acaf2, 0x10}, 0x2f0, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:587 +0x205 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processAnonymousFieldRequired(0xc000a961e0, {{0x304e550, 0xd}, {0x0, 0x0}, {0x3f02410, 0x3615560}, {0x0, 0x0}, 0x0, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:522 +0x347 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processAnonymousField(0xc000a961e0, {{0x304e550, 0xd}, {0x0, 0x0}, {0x3f02410, 0x3615560}, {0x0, 0x0}, 0x0, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:497 +0x3c8 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).processField(0xc000a961e0, {{0x304e550, 0xd}, {0x0, 0x0}, {0x3f02410, 0x3615560}, {0x0, 0x0}, 0x0, ...}, ...) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:584 +0x165 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).unmarshalWithFullName(0xc000a961e0, {0x3ed0d80, 0xc000a96200}, {0x3403080, 0xc000ad0008}, {0x0, 0x0}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:978 +0x3c7 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).unmarshalValuer(0xc000a961e0, {0x3ec6e20, 0xc000af22a0}, {0x3403080, 0xc000ad0008}, {0x0, 0x0}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:114 +0xda github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).unmarshal(0xc000a961e0, {0x32bc860, 0xc000af22a0}, {0x3403080, 0xc000ad0008}, {0x0, 0x0}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:96 +0x3a7 github.com/zeromicro/go-zero/core/mapping.(*Unmarshaler).Unmarshal(0xc000a961e0, {0x32bc860, 0xc000af22a0}, {0x3403080, 0xc000ad0008}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go:80 +0x5d github.com/zeromicro/go-zero/core/mapping.UnmarshalJsonMap(0xc000af22a0, {0x3403080, 0xc000ad0008}, {0xc0009b3698, 0x1, 0x1}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/mapping/jsonunmarshaler.go:20 +0x76 github.com/zeromicro/go-zero/core/conf.LoadFromJsonBytes({0xc000ad2700, 0x350, 0x380}, {0x3403080, 0xc000ad0008}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/conf/config.go:88 +0x25c github.com/zeromicro/go-zero/core/conf.LoadFromYamlBytes({0xc000ad2000, 0x36c, 0x36d}, {0x3403080, 0xc000ad0008}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/conf/config.go:114 +0x15e github.com/zeromicro/go-zero/core/conf.Load({0x36f5f4d, 0xf}, {0x3403080, 0xc000ad0008}, {0x0, 0x0, 0x0}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/conf/config.go:65 +0x46e github.com/zeromicro/go-zero/core/conf.MustLoad({0x36f5f4d, 0xf}, {0x3403080, 0xc000ad0008}, {0x0, 0x0, 0x0}) /home/yanwc/go/pkg/mod/github.com/zeromicro/[email protected]/core/conf/config.go:125 +0x6f main.main() /home/yanwc/myprojects/uhk-service/system/rpc/system.go:41 +0xdf
Error file: github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go
case valueKind == reflect.String && derefedFieldType == durationType: return fillDurationValue(fieldType, value, mapValue.(string)) // <------- line 617
The text was updated successfully, but these errors were encountered:
The timeout duration must be format, like 30s, so the expect configuration is
30s
Name: user.rpc ListenOn: 0.0.0.0:8080 MethodTimeouts: - FullMethod: /system.mail/SendMail Timeout: 30s
Sorry, something went wrong.
No branches or pull requests
Start error reporting when configuring the MethodTimeouts property of Timeout
The error content is:
Error file: github.com/zeromicro/[email protected]/core/mapping/unmarshaler.go
The text was updated successfully, but these errors were encountered: