{"record":{"id":"809dfc7df63582d8","repo":"Dokploy/dokploy","slug":"bad-request-809dfc","errorCode":"BAD_REQUEST","errorMessage":"Error updating registry","messagePattern":"Error updating registry","errorType":"exception","errorClass":"TRPCError","httpStatus":400,"severity":"error","filePath":"apps/dokploy/server/api/routers/registry.ts","lineNumber":72,"sourceCode":"\t\t\treturn await removeRegistry(input.registryId);\n\t\t}),\n\tupdate: withPermission(\"registry\", \"create\")\n\t\t.input(apiUpdateRegistry)\n\t\t.mutation(async ({ input, ctx }) => {\n\t\t\tconst { registryId, ...rest } = input;\n\t\t\tconst registry = await findRegistryById(registryId);\n\t\t\tif (registry.organizationId !== ctx.session.activeOrganizationId) {\n\t\t\t\tthrow new TRPCError({\n\t\t\t\t\tcode: \"UNAUTHORIZED\",\n\t\t\t\t\tmessage: \"You are not allowed to update this registry\",\n\t\t\t\t});\n\t\t\t}\n\t\t\tconst application = await updateRegistry(registryId, {\n\t\t\t\t...rest,\n\t\t\t});\n\n\t\t\tif (!application) {\n\t\t\t\tthrow new TRPCError({\n\t\t\t\t\tcode: \"BAD_REQUEST\",\n\t\t\t\t\tmessage: \"Error updating registry\",\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tawait audit(ctx, {\n\t\t\t\taction: \"update\",\n\t\t\t\tresourceType: \"registry\",\n\t\t\t\tresourceId: registryId,\n\t\t\t\tresourceName: registry.registryName,\n\t\t\t});\n\t\t\treturn true;\n\t\t}),\n\tall: withPermission(\"registry\", \"read\").query(async ({ ctx }) => {\n\t\tconst registryResponse = await db.query.registry.findMany({\n\t\t\twhere: eq(registry.organizationId, ctx.session.activeOrganizationId),\n\t\t});\n\t\treturn registryResponse;","sourceCodeStart":54,"sourceCodeEnd":90,"githubUrl":"https://github.com/Dokploy/dokploy/blob/546686ea3587f12ec5652217dedd9f7960fb6d15/apps/dokploy/server/api/routers/registry.ts#L54-L90","documentation":"Error \"Error updating registry\" thrown in Dokploy/dokploy.","triggerScenarios":"Thrown at apps/dokploy/server/api/routers/registry.ts:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"546686ea3587f12ec5652217dedd9f7960fb6d15","analyzedAt":"2026-08-27T05:18:58.095Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}