Skip to main content
Glama
error-interceptor.ts1.17 kB
/** * Placeholder for error interception logic. * Currently, primary Axios error enhancement is handled in src/api/client.ts. */ // import { enhanceApiError, isValueMismatchError } from '../utils/error-enhancer.js'; // import { createErrorResult } from '../utils/error-handler.js'; // This file might have previously contained specific error handling logic // or an alternative interceptor. For now, it's a placeholder to avoid build issues // stemming from previous incorrect edits. import { createScopedLogger } from '../utils/logger.js'; const log = createScopedLogger('error-interceptor'); export function placeholderInterceptorLogic(error: unknown): unknown { const message = 'Placeholder interceptor invoked. Original error passed through.'; const data = error instanceof Error ? { error: { message: error.message, name: error.name } } : { error: { message: String(error) } }; log.warn(message, data); return error; } // If this file was intended to export an Axios interceptor function, // it would look different, e.g.: // export const attioErrorResponseInterceptor = (error: any) => { ... return Promise.reject(error) };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kesslerio/attio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server