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

function Timex.Duration.now/1 is undefined (module Timex.Duration is not available) #9

Open
Overbryd opened this issue Dec 20, 2017 · 1 comment

Comments

@Overbryd
Copy link

I had to manually add :timex to :extra_applications, that enables Pinglix to use Timex.Duration.now/1.

Maybe this should be fixed here, or at least added to the README. Spent some time debugging this, as I didn't expect Pinglix causing this by a transient dependency.

Request: GET /_ping
** (exit) an exception was raised:
    ** (UndefinedFunctionError) function Timex.Duration.now/1 is undefined (module Timex.Duration is not available)
        Timex.Duration.now(:seconds)
        (pinglix) lib/pinglix/status.ex:29: Pinglix.Status.set_current_time/1
        (hs_api) lib/.../ping.ex:1: Redacted.Ping.call/2
        (hs_api) lib/.../endpoint.ex:1: Redacted.Endpoint.plug_builder_call/2
        (hs_api) lib/.../endpoint.ex:1: Redacted.Endpoint.call/2
        (plug) lib/plug/adapters/cowboy/handler.ex:15: Plug.Adapters.Cowboy.Handler.upgrade/4
        (cowboy) /.../deps/cowboy/src/cowboy_protocol.erl:442: :cowboy_protocol.execute/4
19:42:08.307 [info] SIGTERM received - shutting down
@pvdvreede
Copy link
Owner

Thanks for the issue! I will add it to the extra_applications as you suggest - Ill try and do it over the xmas break.

pvdvreede added a commit that referenced this issue Dec 30, 2017
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