Open mrusme opened 5 years ago
Hey @mrusme
I tried to reproduce the issue, but I miss too many part such as how you put it in a supervisor tree and how MyModule.API.EndpointOne
and ExternalModule.Helpers.Response
look like.
It will more helpful for me If you can put your code in a simple standalone repo.
@falood thank you for getting back! :) Actually you can check the real code here and here. paperwork.ex
is the library where I'm trying to have the Maru.Server
definition and all rescue_from
s implemented, while service-notes
is one service in which I'm trying to utilise those. I would e.g. like to get rid of this and only have it here.
I'm struggling to figure out how to make use of of things like
before
andrescue_from
when they are defined inside another module, e.g.:ExternalModule
Now, inside my project I add
ExternalModule
as a dependency I and I create the following files:MyModule
The application compiles successfully, but when I'm trying to access the endpoint that should be mounted with
MyModule.API.EndpointOne
a 500 is being returned. Apparently the mount is being ignores, as are therescue_from
definitions within theExternalModule
. However, theget do
that returnshello: :world
is being run when performing aGET /
.I'm not sure if this is a bug or simply me holding it wrong. However, some help (and maybe documentation) on this topic would be very much appreciated! :-)
Thanks!