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
'[sentry] If Next.js logs a warning "API resolved without sending a response", it\'s a false positive, which may happen when you use `wrapApiHandlerWithSentry` manually to wrap your routes. To suppress this warning, set `SENTRY_IGNORE_API_RESOLUTION_ERROR` to 1 in your env. To suppress the nextjs warning, use the `externalResolver` API route option (see https://nextjs.org/docs/api-routes/api-middlewares#custom-config for details).',
103
-
);
104
-
});
105
-
}
106
-
107
-
returnhandlerResult;
91
+
returnawaitwrappingTarget.apply(thisArg,args);
108
92
}catch(e){
109
93
// In case we have a primitive, wrap it in the equivalent wrapper class (string -> String, etc.) so that we can
110
94
// store a seen flag on it. (Because of the one-way-on-Vercel-one-way-off-of-Vercel approach we've been forced
@@ -123,16 +107,8 @@ export function wrapApiHandlerWithSentry(apiHandler: NextApiHandler, parameteriz
123
107
},
124
108
});
125
109
126
-
// Because we're going to finish and send the transaction before passing the error onto nextjs, it won't yet
127
-
// have had a chance to set the status to 500, so unless we do it ourselves now, we'll incorrectly report that
0 commit comments