{"record":{"id":"38095bd9bb1f0fe9","repo":"browser-use/browser-use","slug":"missing-required-cookie-cookie-name-cookie-d","errorCode":null,"errorMessage":"Missing required cookie '{cookie_name}': {cookie_description}","messagePattern":"Missing required cookie '(.+?)': (.+?)","errorType":"exception","errorClass":"MissingCookieException","httpStatus":null,"severity":"error","filePath":"browser_use/skills/service.py","lineNumber":207,"sourceCode":"\t\t# Check if skill exists in cache\n\t\tskill = await self.get_skill(skill_id)\n\t\tif skill is None:\n\t\t\traise ValueError(f'Skill {skill_id} not found in cache. Available skills: {list(self._skills.keys())}')\n\n\t\t# Extract cookie parameters from the skill\n\t\tcookie_params = [p for p in skill.parameters if p.type == 'cookie']\n\n\t\t# Build a dict of cookies from the provided cookie list\n\t\tcookie_dict: dict[str, str] = {cookie['name']: cookie['value'] for cookie in cookies}\n\n\t\t# Check for missing required cookies and fill cookie values\n\t\tif cookie_params:\n\t\t\tfor cookie_param in cookie_params:\n\t\t\t\tis_required = cookie_param.required if cookie_param.required is not None else True\n\n\t\t\t\tif is_required and cookie_param.name not in cookie_dict:\n\t\t\t\t\t# Required cookie is missing - raise exception with description\n\t\t\t\t\traise MissingCookieException(\n\t\t\t\t\t\tcookie_name=cookie_param.name, cookie_description=cookie_param.description or 'No description provided'\n\t\t\t\t\t)\n\n\t\t\t# Fill in cookie values into parameters\n\t\t\t# Convert parameters to dict first if it's a BaseModel\n\t\t\tif isinstance(parameters, BaseModel):\n\t\t\t\tparams_dict = parameters.model_dump()\n\t\t\telse:\n\t\t\t\tparams_dict = dict(parameters)\n\n\t\t\t# Add cookie values to parameters\n\t\t\tfor cookie_param in cookie_params:\n\t\t\t\tif cookie_param.name in cookie_dict:\n\t\t\t\t\tparams_dict[cookie_param.name] = cookie_dict[cookie_param.name]\n\n\t\t\t# Replace parameters with the updated dict\n\t\t\tparameters = params_dict\n","sourceCodeStart":189,"sourceCodeEnd":225,"githubUrl":"https://github.com/browser-use/browser-use/blob/6c73fced2f6d45a11d88622fe56365a5fe18f28b/browser_use/skills/service.py#L189-L225","documentation":"Error \"Missing required cookie '{cookie_name}': {cookie_description}\" thrown in browser-use/browser-use.","triggerScenarios":"A skill declares a required cookie that is absent from the browser profile's cookies.","commonSituations":"Running an authenticated skill without first logging in / syncing the profile cookies.","solutions":["Provide the required cookie in the browser profile before invoking the skill.","Log in to the target site so the cookie is set, or sync a cloud profile."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6c73fced2f6d45a11d88622fe56365a5fe18f28b","analyzedAt":"2026-08-14T19:42:40.557Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}