# Timex Tzdata error

**URL:** <https://forum.elixirforum.com/t/timex-tzdata-error/28146>\
**Category:** Questions\
**Tags:** timex, tzdata\
**Created:** [January 10, 2020, 3:59am UTC](https://forum.elixirforum.com/t/timex-tzdata-error/28146 "2020-01-10T03:59:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrewb](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/andrewb/32/20567_2.png) [@andrewb](https://forum.elixirforum.com/u/andrewb)\
**Post date:** [January 10, 2020, 3:59am UTC](https://forum.elixirforum.com/t/timex-tzdata-error/28146/1 "2020-01-10T03:59:16Z")

</div>

I am using Timex (Which is fantastic) but each day when I compile for the first time I get the following error:

```elixir
[error] GenServer :tzdata_release_updater terminating
** (ArgumentError) argument error
    (stdlib) :ets.lookup_element(:hackney_config, :mod_metrics, 2)
    /Users/abarr/Code/conference/deps/hackney/src/hackney_metrics.erl:26: :hackney_metrics.get_engine/0
    /Users/abarr/Code/conference/deps/hackney/src/hackney_connect.erl:78: :hackney_connect.create_connection/5
    /Users/abarr/Code/conference/deps/hackney/src/hackney_connect.erl:47: :hackney_connect.connect/5
    /Users/abarr/Code/conference/deps/hackney/src/hackney.erl:333: :hackney.request/5
    (tzdata) lib/tzdata/http_client/hackney.ex:17: Tzdata.HTTPClient.Hackney.head/3
    (tzdata) lib/tzdata/data_loader.ex:46: Tzdata.DataLoader.last_modified_of_latest_available/1
    (tzdata) lib/tzdata/release_updater.ex:81: Tzdata.ReleaseUpdater.loaded_tzdata_matches_remote_last_modified?/0
    (tzdata) lib/tzdata/release_updater.ex:42: Tzdata.ReleaseUpdater.poll_for_update/0
    (tzdata) lib/tzdata/release_updater.ex:19: Tzdata.ReleaseUpdater.handle_info/2
    (stdlib) gen_server.erl:637: :gen_server.try_dispatch/4
    (stdlib) gen_server.erl:711: :gen_server.handle_msg/6
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3
Last message: :check_if_time_to_update
State: []

```

It seems to be a problem with checking for updates in tzdata but I have not been able to fix it. Is or has anyone seen this error?

Andrew

---

<div class="post-metadata">

**Author:** ![factoryd](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@factoryd](https://forum.elixirforum.com/u/factoryd)\
**Post date:** [January 10, 2020, 5:14am UTC](https://forum.elixirforum.com/t/timex-tzdata-error/28146/2 "2020-01-10T05:14:20Z")

</div>

It’s a very common occurrence with tzdata. If you don’t need constant TZ updates, you can turn it off with `config :tzdata, :autoupdate, :disabled`

---

<div class="post-metadata">

**Author:** ![dimitarvp](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/32/38664_2.png) [@dimitarvp](https://forum.elixirforum.com/u/dimitarvp)\
**Post date:** [January 10, 2020, 10:00am UTC](https://forum.elixirforum.com/t/timex-tzdata-error/28146/3 "2020-01-10T10:00:29Z")

</div>

I can’t remember properly now but I believe this was a bug that is already fixed. Try upgrading Timex to its latest version?

---

<div class="post-metadata">

**Author:** ![aenglisc](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/aenglisc/32/9531_2.png) [@aenglisc](https://forum.elixirforum.com/u/aenglisc)\
**Post date:** [January 10, 2020, 10:05am UTC](https://forum.elixirforum.com/t/timex-tzdata-error/28146/4 "2020-01-10T10:05:53Z")

</div>

The problem is not with checking the updates per se, it looks like a misconfiguration in hackney.
