PlasmoHQ / bpp

🚀 Browser Platform Publisher
MIT License
161 stars 11 forks source link

[BUG] Failed to publish to chrome webstore #90

Closed vernak2539 closed 2 months ago

vernak2539 commented 2 months ago

What happened?

I'm trying to publish my extension to the webstore and it's failing with the following message:

ERROR  | Error: chrome: Step 1) Item ""nflkcdlimipkgbacnfnhfecjgmojhklo" (__MSG_extensionName__)": Response code 400 (Bad Request)

I've not changed anything much recently (other than adding a couple new languages), but I've also not published an updated in a while.

I'm not sure what's going on. It's happening on both versions of my extension.

You can see the extension here, and the two builds here (default, extended).

Any help would be much appreciated.

Which browsers are you seeing the problem on?

Chrome

Relevant log output

ERROR  | Error: chrome: Step 1) Item ""nflkcdlimipkgbacnfnhfecjgmojhklo" (__MSG_extensionName__)": Response code 400 (Bad Request)

ERROR  | Error: chrome: Step 1) Item ""mdgikencgfhineaememjagpkiclbdkka" (__MSG_extensionNameExtended__)": Response code 400 (Bad Request)

Code of Conduct

vernak2539 commented 2 months ago

I figured out what this was. Since I've

...also not published an updated in a while.

It looks like the refresh token was invalid. I had to:

  1. pnpm dlx gcp-refresh-token in the directory of my keys.json file
  2. Update the SUBMIT_KEYS environment variable used in the action to use the new refresh token
      - name: Browser Platform Publish
        uses: PlasmoHQ/bpp@v3
        with:
          keys: ${{ secrets.SUBMIT_KEYS }}
          artifact: build/chrome-mv3-prod.zip
  3. Run the publish action again