【发布时间】:2022-10-18 17:25:37
【问题描述】:
我在我的 NextJS 应用程序中使用 captureException(error); 在 catch 块中捕获错误。
但是,在 Sentry 中,它并没有像我在开发人员控制台中看到的那样显示整个错误消息。例如它只说:AxiosError: Network Error(见下图)。
如何确保获得整个错误对象?
例如,在开发人员控制台中,我看到:
Access to XMLHttpRequest at 'https://www.hello.com/' from origin 'http://localhost:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.但这不是哨兵
【问题讨论】: