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
When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error.
Steps to reproduce
Have page with data fetcher and autoInstrumentServerFunctions (which is on by default):
constMyComponent=()=>{return<h1>HelloWorld!</h1>;
};exportconstgetServerSideProps=async(context)=>{if(context.params?.myParam==="two"){// only throw conditionally so that this page actually buildsthrownewError("We don't like page two!");}return{props: {}};};exportdefaultMyComponent;
Deploy to Vercel
Open page
Observe that no error has been reported to Sentry
The text was updated successfully, but these errors were encountered:
When run on Vercel, the Next.js SDK currently doesn't capture any errors thrown in Next.js data fetching methods. The runtime just quits without reporting the error.
Steps to reproduce
autoInstrumentServerFunctions
(which is on by default):The text was updated successfully, but these errors were encountered: