Tracking for errors thrown server-side #3057
TryingToImprove
started this conversation in
Proposals
Replies: 2 comments 3 replies
-
Investigated a little more; See this thread on discord: https://discord.com/channels/770287896669978684/970608233880363049 However I think I might be able to do something like https://github.com/jacob-ebey/remix-sentry/tree/7ec8c84689b1cadb2752e741c152d0981f5d45f0/server but I need to test that I get all the errors I remix can throw. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I need this as well. Patch package seems ugly, especially as I feel that I am already patching around so many other limitations of remix. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I needed to track errors thrown from Remix server-side. From my investigation into this, it seem like the
createRequestHandler
handles the errors thrown - it makes sense it needs to do it's magic for ErrorBoundaries.However it prevented me from using a global express middleware which would handle errors thrown.
I got something working using patch-package like below:
entry.server.tsx
It would be nice if there were a way to hook into the error functionality in order to send errors to ex. sentry.io.
Beta Was this translation helpful? Give feedback.
All reactions