{"record":{"id":"590c9cc60715019b","repo":"Dokploy/dokploy","slug":"error-response-status-response-statustext-590c9c","errorCode":null,"errorMessage":"Error ${response.status}: ${response.statusText}. Please verify that the application \"${input.appName}\" is running and this service is included in the monitoring configuration.","messagePattern":"Error (.+?): (.+?)\\. Please verify that the application \"(.+?)\" is running and this service is included in the monitoring configuration\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"apps/dokploy/server/api/routers/user.ts","lineNumber":554,"sourceCode":"\t\t\t\tif (!input.appName) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t\"No Application Selected:\",\n\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\"Make Sure to select an application to monitor.\",\n\t\t\t\t\t\t].join(\"\\n\"),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\tconst url = new URL(`${input.url}/metrics/containers`);\n\t\t\t\turl.searchParams.append(\"limit\", input.dataPoints);\n\t\t\t\turl.searchParams.append(\"appName\", input.appName);\n\t\t\t\tconst response = await fetch(url.toString(), {\n\t\t\t\t\theaders: {\n\t\t\t\t\t\tAuthorization: `Bearer ${input.token}`,\n\t\t\t\t\t},\n\t\t\t\t});\n\t\t\t\tif (!response.ok) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t`Error ${response.status}: ${response.statusText}. Please verify that the application \"${input.appName}\" is running and this service is included in the monitoring configuration.`,\n\t\t\t\t\t);\n\t\t\t\t}\n\n\t\t\t\tconst data = await response.json();\n\t\t\t\tif (!Array.isArray(data) || data.length === 0) {\n\t\t\t\t\tthrow new Error(\n\t\t\t\t\t\t[\n\t\t\t\t\t\t\t`No monitoring data available for \"${input.appName}\". This could be because:`,\n\t\t\t\t\t\t\t\"\",\n\t\t\t\t\t\t\t\"1. The container was recently started - wait a few minutes for data to be collected\",\n\t\t\t\t\t\t\t\"2. The container is not running - verify its status\",\n\t\t\t\t\t\t\t\"3. The service is not included in your monitoring configuration\",\n\t\t\t\t\t\t].join(\"\\n\"),\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t\treturn data as {\n\t\t\t\t\tcontainerId: string;","sourceCodeStart":536,"sourceCodeEnd":572,"githubUrl":"https://github.com/Dokploy/dokploy/blob/546686ea3587f12ec5652217dedd9f7960fb6d15/apps/dokploy/server/api/routers/user.ts#L536-L572","documentation":"Thrown by Dokploy's monitoring query when the fetch to the monitoring service (Dockyard/monitoring endpoint with a Bearer token) returns a non-2xx status. The message embeds the HTTP status/statusText and asks you to verify the app is running and monitored. It indicates the monitoring side rejected the request, not Dokploy itself.","triggerScenarios":"Calling the monitoring data-points query for an appName whose container is stopped, not scraped by the monitoring stack, or when the Bearer token is invalid/expired causing 401/403 from the monitoring service.","commonSituations":"App container just redeployed or stopped; monitoring agent (Prometheus/Dockyard) not covering the service; wrong or expired token passed in input.token; monitoring service URL misconfigured or unreachable behind a proxy that returns 502.","solutions":["Verify the application container is actually running (docker ps / Dokploy UI status)","Confirm the service is included in the monitoring configuration and the agent has had time to scrape it","Check that input.token is a valid, current monitoring token","Inspect the embedded HTTP status: 401/403 → token issue, 404 → service not in monitoring config, 5xx → monitoring backend issue"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":"// Pre-check container state via Dokploy API if available before fetching metrics","typeGuard":null,"tryCatchPattern":"try { const pts = await query(...); } catch (e) { if (/^Error \\d+/.test(e.message)) { const status = Number(e.message.match(/\\d+/)[0]); handleByStatus(status); } else throw e; }","preventionTips":["Confirm container is running before opening monitoring","Keep monitoring token fresh; rotate via the app settings","Parse the embedded HTTP status to branch remediation"],"tags":["dokploy","monitoring","http","fetch","docker"],"backgroundTag":"http-response-not-ok","analyzedSha":"546686ea3587f12ec5652217dedd9f7960fb6d15","analyzedAt":"2026-08-27T05:18:58.095Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}