{"record":{"id":"37a76f35518be60d","repo":"conductor-oss/conductor","slug":"failed-to-fetch-event-data","errorCode":null,"errorMessage":"Failed to fetch event data","messagePattern":"Failed to fetch event data","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"ui-next/src/pages/eventMonitor/EventMonitorDetail/Refresher/state/services.ts","lineNumber":65,"sourceCode":"};\nexport const fetchEventData = async ({\n  pageType,\n  authHeaders,\n  eventName,\n  timeRange,\n}: RefreshMachineContext) => {\n  if (!authHeaders) {\n    throw new Error(\"authHeaders is not defined\");\n  }\n\n  try {\n    if (pageType === PageType.EVENT_LISTING) {\n      return await fetchEventListingData(authHeaders);\n    }\n    return await fetchEventMonitorData(authHeaders, eventName, timeRange);\n  } catch (error) {\n    console.error(\"Error fetching event data:\", error);\n    throw new Error(\"Failed to fetch event data\");\n  }\n};\n","sourceCodeStart":47,"sourceCodeEnd":68,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/ui-next/src/pages/eventMonitor/EventMonitorDetail/Refresher/state/services.ts#L47-L68","documentation":"Error \"Failed to fetch event data\" thrown in conductor-oss/conductor.","triggerScenarios":"Thrown at ui-next/src/pages/eventMonitor/EventMonitorDetail/Refresher/state/services.ts:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Confirm authHeaders are passed into the refresh machine context before invoking fetchEventData.","Check server availability and the event monitor endpoints; the underlying error is logged to the console.","Retry after verifying network connectivity to the Conductor API."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cf7c3e4a8adfb158be778ab1ec525323c363cd3a","analyzedAt":"2026-08-14T03:33:19.897Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}