Skip to content

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.

fix: 404 resource not found issues (#4757)

Vikrant Guptae25b54f86abe
diff --git a/frontend/src/api/SAML/listAllDomain.ts b/frontend/src/api/SAML/listAllDomain.ts
index dea73e4311..41620f7d3e 100644
--- a/frontend/src/api/SAML/listAllDomain.ts
+++ b/frontend/src/api/SAML/listAllDomain.ts
@@ -8,7 +8,7 @@ const listAllDomain = async (
props: Props,
): Promise<SuccessResponse<PayloadProps> | ErrorResponse> => {
try {
- const response = await axios.get(`orgs/${props.orgId}/domains`);
+ const response = await axios.get(`/orgs/${props.orgId}/domains`);
return {
statusCode: 200,
diff --git a/frontend/src/api/queryBuilder/getAggregateAttribute.ts b/frontend/src/api/queryBuilder/getAggregateAttribute.ts
index e493bb460a..f13c3da4a8 100644
--- a/frontend/src/api/queryBuilder/getAggregateAttribute.ts
+++ b/frontend/src/api/queryBuilder/getAggregateAttribute.ts
@@ -24,7 +24,7 @@ export const getAggregateAttribute = async ({
const response: AxiosResponse<{
data: IQueryAutocompleteResponse;
}> = await ApiV3Instance.get(
- `autocomplete/aggregate_attributes?${createQueryParams({
+ `/autocomplete/aggregate_attributes?${createQueryParams({
aggregateOperator,
searchText,
dataSource,
diff --git a/frontend/src/api/queryBuilder/getAttributeKeys.ts b/frontend/src/api/queryBuilder/getAttributeKeys.ts
index 99edc630c8..9cc127bb71 100644
--- a/frontend/src/api/queryBuilder/getAttributeKeys.ts
+++ b/frontend/src/api/queryBuilder/getAttributeKeys.ts
@@ -25,7 +25,7 @@ export const getAggregateKeys = async ({
const response: AxiosResponse<{
data: IQueryAutocompleteResponse;
}> = await ApiV3Instance.get(
- `autocomplete/attribute_keys?${createQueryParams({
+ `/autocomplete/attribute_keys?${createQueryParams({
aggregateOperator,
searchText,
dataSource,
diff --git a/frontend/src/api/saveView/deleteView.ts b/frontend/src/api/saveView/deleteView.ts
index e58e731d10..9317c8331a 100644
--- a/frontend/src/api/saveView/deleteView.ts
+++ b/frontend/src/api/saveView/deleteView.ts
@@ -2,4 +2,4 @@ import axios from 'api';
import { DeleteViewPayloadProps } from 'types/api/saveViews/types';
export const deleteView = (uuid: string): Promise<DeleteViewPayloadProps> =>
- axios.delete(`explorer/views/${uuid}`);
+ axios.delete(`/explorer/views/${uuid}`);
diff --git a/frontend/src/api/saveView/getAllViews.ts b/frontend/src/api/saveView/getAllViews.ts
index bdafb96b61..4a54d6af0d 100644
--- a/frontend/src/api/saveView/getAllViews.ts
+++ b/frontend/src/api/saveView/getAllViews.ts
@@ -6,4 +6,4 @@ import { DataSource } from 'types/common/queryBuilder';
export const getAllViews = (
sourcepage: DataSource,
): Promise<AxiosResponse<AllViewsProps>> =>
- axios.get(`explorer/views?sourcePage=${sourcepage}`);
+ axios.get(`/explorer/views?sourcePage=${sourcepage}`);
diff --git a/frontend/src/api/saveView/saveView.ts b/frontend/src/api/saveView/saveView.ts
index a0c7ba5bf4..60a552f0bb 100644
--- a/frontend/src/api/saveView/saveView.ts
+++ b/frontend/src/api/saveView/saveView.ts
@@ -8,7 +8,7 @@ export const saveView = ({
viewName,
extraData,
}: SaveViewProps): Promise<AxiosResponse<SaveViewPayloadProps>> =>
- axios.post('explorer/views', {
+ axios.post('/explorer/views', {
name: viewName,
sourcePage,
compositeQuery,
diff --git a/frontend/src/api/saveView/updateView.ts b/frontend/src/api/saveView/updateView.ts
index 6ee745ffc2..b48b73f275 100644
--- a/frontend/src/api/saveView/updateView.ts
+++ b/frontend/src/api/saveView/updateView.ts
@@ -11,7 +11,7 @@ export const updateView = ({
sourcePage,
viewKey,
}: UpdateViewProps): Promise<UpdateViewPayloadProps> =>
- axios.put(`explorer/views/${viewKey}`, {
+ axios.put(`/explorer/views/${viewKey}`, {
name: viewName,
compositeQuery,
extraData,