Skip to content
New issue

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

Error after reading time.Duration fields in 1.2.6 #87

Open
olya-varentsova opened this issue Jan 27, 2022 · 1 comment
Open

Error after reading time.Duration fields in 1.2.6 #87

olya-varentsova opened this issue Jan 27, 2022 · 1 comment

Comments

@olya-varentsova
Copy link

olya-varentsova commented Jan 27, 2022

Hello, I used v1.2.5 and alway gone all right. But problems with time fields have appeared in 1.2.6.
I have this error pattern:
line N: cannot unmarshal !!int `M` into time.Duration.
I have config same as:

type Config {
...
Timeout time.Duration `yaml:"timeout"`
...
} 
@luthfimasruri
Copy link

luthfimasruri commented May 26, 2022

Don't use integer like 5 in your configuration file use 5s instead.
Note: Valid time units are “ns”, “us” (or “µs”), “ms”, “s”, “m”, “h”.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants