You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the rescue_from definitions within the ExternalModule. However, the get do that returns hello: :world is being run when performing a GET /.
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!
The text was updated successfully, but these errors were encountered:
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_froms 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!
The text was updated successfully, but these errors were encountered: