google-chromegoogle-chrome-extensionchrome-extension-manifest-v2

How to load an unpacked chrome extension on a new Chrome Profile?


I am developing an unpacked local chrome extension with manifest version 2 that uses the chrome.identity API which currently works on my main Chrome Profile, and I'd also like to install it on my second Chrome Profile.

However, i am getting this error only on the Second Profile: Unchecked runtime.lastError: OAuth2 request failed: Service responded with error: 'internal server error, which normally means that the 'key' field in manifest.json is not set correctly (thrown by chrome.identity API). The thing is, i've followed the exact same steps on this secondary profile as I did on my main profile, but it only gives the error on the secondary profile:

What I've also tried:

Additional info:


Solution

  • I figured out what was the issue: the new profile wasn't registered as a trusted tester on Google Cloud.

    Steps to fix:

    1. Go to Google Cloud OAuth consent screen.
    2. In "Test Users" section, add the e-mail for the new Chrome Profile.