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

Default values for missing env variables do not work for duration and int #15

Closed
sergevoloshyn opened this issue Jul 12, 2022 · 0 comments

Comments

@sergevoloshyn
Copy link

Hey!

I wonder why default value for Strings works fine, but for config like:

rate-limiter { event-count = 2 event-count = ${?RATE_LIMITER_EVENT_COUNT} interval = 1s interval = ${?RATE_LIMITER_INTERVAL} }

I'm getting
interface conversion: hocon.Value is hocon.Duration, not hocon.String for Duration value
and
panic: runtime error: integer divide by zero for Int value (rate-limiter.event-count is loaded as zero)

This issue was closed.
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

1 participant