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

(FunctionClauseError) no function clause matching in Keyword.delete_key/3 #84

Closed
michaelstalker opened this issue Jul 23, 2019 · 3 comments

Comments

@michaelstalker
Copy link

We encountered an error in one of our apps that uses Timex, which uses Tzdata. Here's the stacktrace:

Elixir.FunctionClauseError: no function clause matching in Keyword.delete_key/3
  File "lib/tzdata/util.ex", line 73, in Tzdata.Util.first_matching_weekday_in_month/4
  File "lib/tzdata/util.ex", line 329, in Tzdata.Util.time_for_rule/2
  File "lib/tzdata/period_builder.ex", line 161, in Tzdata.PeriodBuilder.calc_periods_for_year/9
  File "lib/tzdata/period_builder.ex", line 180, in Tzdata.PeriodBuilder.calc_periods_for_year/9
  File "lib/tzdata/period_builder.ex", line 185, in Tzdata.PeriodBuilder.calc_periods_for_year/9
  File "lib/tzdata/period_builder.ex", line 180, in Tzdata.PeriodBuilder.calc_periods_for_year/9
  File "lib/tzdata/period_builder.ex", line 185, in Tzdata.PeriodBuilder.calc_periods_for_year/9
  File "lib/tzdata/period_builder.ex", line 180, in Tzdata.PeriodBuilder.calc_periods_for_year/9
  Module "Elixir.Tzdata.ReleaseUpdater", in Tzdata.ReleaseUpdater.init/1

The four arguments to Tzdata.Util.first_matching_weekday_in_month/4 are 1932, 4, 7, and [], respectively.

We're using Timex 3.6.1 and Tzdata 1.0.1.

@lau
Copy link
Owner

lau commented Jul 23, 2019

That error with those line numbers look suspiciously like Tzdata 1.0.0 (as opposed to 1.0.1). Would you mind double checking that you are indeed running 1.0.1 and not 1.0.0 (or earlier)?

@michaelstalker
Copy link
Author

It turns out that we were running an older version of the app 🤦‍♂ I'll close this ticket. Thanks for replying so quickly!

@lau
Copy link
Owner

lau commented Jul 26, 2019

No worries :)

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