SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix(frontend): refresh generated api on 401 errors (#10532)
Ashwin Bhatkaldab7f506f7cb
diff --git a/frontend/src/api/index.ts b/frontend/src/api/index.tsindex f5eb318e09..338fcc8b12 100644--- a/frontend/src/api/index.ts+++ b/frontend/src/api/index.ts@@ -94,19 +94,13 @@ export const interceptorRejected = async (afterLogin(response.data.accessToken, response.data.refreshToken, true);try {- const reResponse = await axios(- `${value.config.baseURL}${value.config.url?.substring(1)}`,- {- method: value.config.method,- headers: {- ...value.config.headers,- Authorization: `Bearer ${response.data.accessToken}`,- },- data: {- ...JSON.parse(value.config.data || '{}'),- },+ const reResponse = await axios({+ ...value.config,+ headers: {+ ...value.config.headers,+ Authorization: `Bearer ${response.data.accessToken}`,},- );+ });return await Promise.resolve(reResponse);} catch (error) {