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
{{ message }}
Repository navigation
Error stack trace becomes visible when using the XML accept header #2660
Depending on the accept header we use with the /route endpoint we can see the error stack trace on the client side:
Using 'Accept: application/xml' we get to see the error stack trace as XML. For example Firefox and Chrome seem to do this by default, so we see this when we open a /route url in the browser.
Using 'Accept: application/json' or no accept header at all we get to see the error message as JSON
Not sure if this is a real problem and I just put this as a reminder here. For users who do not use GraphHopper behind a proxy it might be important, but probably this can simply be disabled by some DropWizard configuration parameter in config.yml(?).
Btw we have a similar problem for /mvt (MVTResource.java). If an exception is thrown there apparently we also try to serialize it to XML (somewhere), but since the endpoint is annotated with @Produces("application/x-protobuf") we get a server-side error (500).
Activity
easbar commentedon Sep 23, 2022
Btw we have a similar problem for
/mvt(MVTResource.java). If an exception is thrown there apparently we also try to serialize it to XML (somewhere), but since the endpoint is annotated with@Produces("application/x-protobuf")we get a server-side error (500).