(Created on )

Puppeteer: Unknown permission:

The requested permission name has no mapping in this protocol implementation.


The requested permission name has no mapping in this protocol implementation.

Error message

Unknown permission:

How this error happens

overridePermissions uses Puppeteer’s permission names. A made-up permission or a browser UI label has no protocol mapping.

The snippets use a running Puppeteer browser named browser.

await browser.defaultBrowserContext().overridePermissions(
    "https://example.com",
    ["location"]
);

How to fix

Use the supported permission name for the capability you need.

await browser.defaultBrowserContext().overridePermissions(
    "https://example.com",
    ["geolocation"]
);

Things to keep in mind

Support differs between browser protocols. Grant only the permissions your test needs.

All Puppeteer errors

Keep Reading

Puppeteer Guides

All Guides →