{"record":{"id":"98a8a746431e06d6","repo":"HeyPuter/puter","slug":"bad-request-98a8a7","errorCode":"bad_request","errorMessage":"Missing or invalid `object`","messagePattern":"Missing or invalid `object`","errorType":"validation","errorClass":"HttpError","httpStatus":400,"severity":"error","filePath":"src/backend/drivers/apps/AppDriver.js","lineNumber":196,"sourceCode":"            bySubscription: {\n                [DEFAULT_FREE_SUBSCRIPTION]: 10,\n                [DEFAULT_TEMP_SUBSCRIPTION]: 5,\n            },\n        },\n    };\n\n    get appStore() {\n        return this.stores.app;\n    }\n    get permService() {\n        return this.services.permission;\n    }\n\n    // -- Driver methods -----------------------------------------------\n\n    async create({ object, options } = {}) {\n        if (!object || typeof object !== 'object') {\n            throw new HttpError(400, 'Missing or invalid `object`', {\n                legacyCode: 'bad_request',\n            });\n        }\n        const actor = this.#requireActor();\n        this.#requireUserOrAppActor(actor);\n\n        const fields = await this.#validateInput(object, { isCreate: true });\n\n        // Puter-hosted index_url handling. Order matches v1 AppES:\n        //   1. Refuse if the index_url's subdomain isn't owned by this user.\n        //   2. Try to merge into an existing row with the same index_url\n        //      (origin-bootstrap takeover, or claiming an unowned row).\n        //   3. Otherwise enforce index_url uniqueness so two rows can't\n        //      share a hosted URL.\n        await this.#ensurePuterSiteSubdomainIsOwned(\n            fields.index_url,\n            actor.user,\n        );","sourceCodeStart":178,"sourceCodeEnd":214,"githubUrl":"https://github.com/HeyPuter/puter/blob/908ec23eda38526170322c3edf71ba45ecb1ca95/src/backend/drivers/apps/AppDriver.js#L178-L214","documentation":"Error \"Missing or invalid `object`\" thrown in HeyPuter/puter.","triggerScenarios":"Thrown at src/backend/drivers/apps/AppDriver.js:196 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass a valid `object` parameter specifying the app driver object type.","Check the AppDriver interface documentation for allowed `object` values."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"908ec23eda38526170322c3edf71ba45ecb1ca95","analyzedAt":"2026-08-12T20:53:15.911Z","schemaVersion":2},"datasetVersion":"2026-08-12T23:17:12.415Z"}