Fixing Elixirs TZData updater with IEx

[error] GenServer :tzdata_release_updater terminating
** (ArgumentError) argument error
    (stdlib) :ets.lookup_element(:hackney_config, :mod_metrics, 2)

You hate to see it when running iex -S mix locally, basically it’s an issue where tzdata can’t update.

You can fix this by either:

  1. Adding the following to your projects dev config:

    config :tzdata, :autoupdate, :disabled

  2. Adding the following snippet to your .iex.exs file:

    Application.put_env(:tzdata, :autoupdate, :disabled)

You can read more about this on the tzdata README.

Thanks to factoryd for pointing the config snippet out at https://elixirforum.com/t/timex-tzdata-error/28146/2