{"record":{"id":"04dca4fe9e0a7c0e","repo":"remotion-dev/remotion","slug":"service-servicename-not-found","errorCode":null,"errorMessage":"Service ${serviceName} not found","messagePattern":"Service (.+?) not found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cloudrun/src/api/get-service-info.ts","lineNumber":38,"sourceCode":"\tserviceName: string;\n};\n/*\n * @description Retrieves detailed information about a specific Cloud Run service using the service name and region.\n * @see [Documentation](https://remotion.dev/docs/cloudrun/getserviceinfo)\n */\n\nexport const getServiceInfo = async ({\n\tregion,\n\tserviceName,\n}: GetServiceInfoInput): Promise<ServiceInfo> => {\n\tconst cloudRunClient = getCloudRunClient();\n\n\tconst [service] = await cloudRunClient.getService({\n\t\tname: `projects/${getProjectId()}/locations/${region}/services/${serviceName}`,\n\t});\n\n\tif (!service) {\n\t\tthrow new Error(`Service ${serviceName} not found`);\n\t}\n\n\tconst {\n\t\tregion: deployedRegion,\n\t\tremotionVersion,\n\t\tserviceName: deployedServiceName,\n\t} = parseServiceName(service.name as string, region);\n\n\treturn {\n\t\tserviceName: deployedServiceName,\n\t\ttimeoutInSeconds: service.template?.timeout?.seconds as number,\n\t\tmemoryLimit: service.template?.containers?.[0].resources?.limits\n\t\t\t?.memory as string,\n\t\tcpuLimit: service.template?.containers?.[0].resources?.limits\n\t\t\t?.cpu as string,\n\t\tremotionVersion,\n\t\turi: service.uri as string,\n\t\tregion: deployedRegion,","sourceCodeStart":20,"sourceCodeEnd":56,"githubUrl":"https://github.com/remotion-dev/remotion/blob/78fe4bb3fdb5a2cd68724393d63cb223db333fa7/packages/cloudrun/src/api/get-service-info.ts#L20-L56","documentation":"Thrown by getServiceInfo() when the Cloud Run client returns a falsy service object for the requested fully-qualified service name. This means no Cloud Run service with the given serviceName exists in the specified region and project.","triggerScenarios":"Calling getServiceInfo({region, serviceName}) where serviceName does not resolve to an existing deployed Cloud Run service via cloudRunClient.getService().","commonSituations":"Referencing a service name that was never deployed, was deleted, deployed in a different region, or referencing the wrong project via GOOGLE_CLOUD_PROJECT / getProjectId().","solutions":["Verify the service exists: gcloud run services describe <serviceName> --region <region>.","Confirm the region matches where the service was deployed.","Confirm the project (getProjectId) is the one where the service lives.","Deploy the service first with the deploy command if it does not exist."],"exampleFix":"// before\nawait getServiceInfo({region: 'us-central1', serviceName: 'remotion-nonexistent-mem2'});\n// after: list deployed services first\ngcloud run services list --region us-central1","handlingStrategy":"try-catch","validationCode":"const services = await listServices(region);\nconst exists = services.some(s => s.name.endsWith('/' + serviceName));\nif (!exists) throw new Error(`Service ${serviceName} not deployed in ${region}`);","typeGuard":null,"tryCatchPattern":"try {\n  const info = await getServiceInfo({region, serviceName});\n} catch (e) {\n  if (e.message.startsWith('Service ') && e.message.endsWith(' not found')) {\n    // redeploy or prompt for correct service name\n  }\n  throw e;\n}","preventionTips":["Cache the serviceName from a successful deploy output rather than hardcoding it.","Run `gcloud run services list --region <region>` before referencing a service."],"tags":["cloudrun","gcp","service","not-found"],"backgroundTag":null,"analyzedSha":"78fe4bb3fdb5a2cd68724393d63cb223db333fa7","analyzedAt":"2026-08-12T17:18:50.444Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}