pvdvreede / pinglix Goto Github PK
View Code? Open in Web Editor NEWPlug compatible health check middleware based on pinglish.
License: MIT License
Plug compatible health check middleware based on pinglish.
License: MIT License
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
I am unable to compile my application when updating elixir 1.4.5 and erlang/ OTP 20
** (CompileError) lib/martide/ping.ex:1: undefined function run_check/1
(stdlib) lists.erl:1338: :lists.foreach/2
(stdlib) erl_eval.erl:670: :erl_eval.do_apply/6
(elixir) lib/kernel/parallel_compiler.ex:117: anonymous fn/4 in Kernel.ParallelCompiler.spawn_compilers/1
on
$ elixir -v
Erlang/OTP 20 [erts-9.0] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Elixir 1.4.5
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.