-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shopify Hydrogen Server Instrumentation Error #15612
Comments
Assigning to @getsentry/support for routing ⏲️ |
3 tasks
Thanks for the issue report @allenjiang17! Can you try running I'll update the docs accordingly if that's the case. |
Just tried it inside the fetch handler -- still the same issue. Thanks for the quick response. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
SaaS (https://sentry.io/)
Steps to Reproduce
I've followed this guide to set up Sentry for Shopify Hydrogen:
https://docs.sentry.io/platforms/javascript/guides/remix/frameworks/hydrogen/
Specifically, instrumenting the server build
const instrumentedBuild = instrumentBuild(remixBuild)
causes an error in my server build. When I make a request to any of my server actions, I get the error
TypeError: Cannot read properties of undefined (reading 'sendDefaultPii')
at /Users/.../fp_storefront_hydrogen/node_modules/@sentry/remix/build/esm/server/errors.js:132:21
I've confirmed that it's specifically this step of instrumenting the server build that causes the problem, as when I comment it out and make requests to my server actions, it works fine.
Expected Result
No errors upon making requests to server actions after instrumenting the server build.
Actual Result
TypeError: Cannot read properties of undefined (reading 'sendDefaultPii')
at /Users/.../fp_storefront_hydrogen/node_modules/@sentry/remix/build/esm/server/errors.js:132:21
Product Area
Unknown
Link
No response
DSN
No response
Version
No response
The text was updated successfully, but these errors were encountered: