fregante / chrome-webstore-upload-cli

CLI tool to upload Chrome Extensions to the Chrome Web Store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--auto-publish return 400 error

volodyad opened this issue · comments

When i try to run publish with autopublish like here
webstore upload --auto-publish --source extension.zip --extension-id $EXTENSION_ID --client-id $CLIENT_ID --client-secret $CLIENT_SECRET --refresh-token $REFRESH_TOKEN

it returns Response code 400 (Bad Request)

#10 and have a look at the guide. You might be using the wrong keys

Try 1.1.1 to see the full error.

@bfred-it Could it be that we're experiencing the same issues with the Refined GitHub builds? The last four CRON builds failed because of this error resulting in the Chrome version not being published:

> @ release:cws /home/travis/build/sindresorhus/refined-github
> cd distribution && webstore upload --auto-publish
Response code 400 (Bad Request)
{
    "error": "invalid_request",
    "error_description": "Parameter not allowed for this message type: redirect_uri"
}

Quote from a StackOverflow answer on an issue with the same error:

It seems Google has recently changed the url for getting a new access token from a refresh token. The older url was https://accounts.google.com/o/oauth2/token and the new one is https://www.googleapis.com/oauth2/v4/token.

No, that's fregante/chrome-webstore-upload#14 soon to be published by @DrewML, hopefully 😅

hello @bfred-it,
you can probably close this one since fregante/chrome-webstore-upload#14 is merged