{"record":{"id":"d949d9d0a8e02dcc","repo":"serverless/serverless","slug":"queue-with-name-resourceid-not-found","errorCode":null,"errorMessage":"Queue with name '${resourceId}' not found","messagePattern":"Queue with name '(.+?)' not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/mcp/src/lib/aws/sqs-resource-info.js","lineNumber":51,"sourceCode":"\n    if (resourceId.includes('amazonaws.com')) {\n      // Extract queue name from URL\n      queueName = sqsClient.getQueueNameFromUrl(resourceId)\n    } else {\n      // Get queue URL from name\n      try {\n        // Since getQueueUrl doesn't exist, we need to list queues and find the one with matching name\n        const queueUrls = await sqsClient.listQueues({\n          queueNamePrefix: resourceId,\n        })\n\n        // Find the exact queue by name\n        const matchingQueue = queueUrls.find(\n          (url) => sqsClient.getQueueNameFromUrl(url) === resourceId,\n        )\n\n        if (!matchingQueue) {\n          throw new Error(`Queue with name '${resourceId}' not found`)\n        }\n\n        queueUrl = matchingQueue\n      } catch (error) {\n        if (error.message.includes('Queue with name')) {\n          throw error\n        } else {\n          throw new Error(`Failed to get queue URL: ${error.message}`)\n        }\n      }\n    }\n\n    // Get queue details\n    const attributes = await sqsClient.getQueueAttributes({ queueUrl })\n\n    // Set default time range to last 24 hours if not provided\n    const now = Date.now()\n    const oneDayAgo = now - 24 * 60 * 60 * 1000","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/serverless/serverless/blob/b9d7ea51c8cce57cff1207964b9b71123673081f/packages/mcp/src/lib/aws/sqs-resource-info.js#L33-L69","documentation":"Error \"Queue with name '${resourceId}' not found\" thrown in serverless/serverless.","triggerScenarios":"Thrown at packages/mcp/src/lib/aws/sqs-resource-info.js:51 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the queue name is correct and exists in the configured AWS region and account.","List queues with 'aws sqs list-queues' to find the correct name."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b9d7ea51c8cce57cff1207964b9b71123673081f","analyzedAt":"2026-08-13T04:14:40.386Z","schemaVersion":2},"datasetVersion":"2026-08-13T09:17:06.757Z"}