firefox-addon icon indicating copy to clipboard operation
firefox-addon copied to clipboard

Request failed with status code 400

Open pbek opened this issue 4 years ago • 4 comments

Thank you for this addon! When using it here I got a Request failed with status code 400

Run trmcnvn/firefox-addon@v1
  with:
    uuid: {87477736-c9f4-44c4-8eee-7fdfaaf750e9}
    xpi: packages/qownnotes-web-companion.v20.8.3.firefox.xpi.zip
    manifest: dist/firefox/manifest.json
    api-key: ***
    api-secret: ***
  env:
    VERSION: 20.8.3
    TAG: v20.8.3
    RELEASE_TEXT: ## 20.8.3
  - Firefox store releasing is now done via GitHub Actions
##[error]Request failed with status code 400

Config: https://github.com/qownnotes/web-companion/blob/8512fd2c075491c775767825c5f6aaa56219fe70/.github/workflows/build-release.yml#L69-L77

Is there a way to find out what causes the error?

pbek avatar Aug 07 '20 06:08 pbek

@pbek You can enable debug logging which should provide some additional details as to why the 400 response came back.

https://docs.github.com/en/actions/configuring-and-managing-workflows/managing-a-workflow-run#enabling-step-debug-logging

trmcnvn avatar Aug 07 '20 15:08 trmcnvn

Ah, thank you. I couldn't find that. I'll try when I'm at home again. 😁

pbek avatar Aug 07 '20 16:08 pbek

##[debug]=> '***'
##[debug]Result: '***'
##[debug]Evaluating: secrets.FIREFOX_API_SECRET
##[debug]Evaluating Index:
##[debug]..Evaluating secrets:
##[debug]..=> Object
##[debug]..Evaluating String:
##[debug]..=> 'FIREFOX_API_SECRET'
##[debug]=> '***'
##[debug]Result: '***'
##[debug]Loading env
Run trmcnvn/firefox-addon@v1
  with:
    uuid: {87477736-c9f4-44c4-8eee-7fdfaaf750e9}
    xpi: packages/qownnotes-web-companion.v20.8.3.firefox.xpi.zip
    manifest: dist/firefox/manifest.json
    api-key: ***
    api-secret: ***
  env:
    VERSION: 20.8.3
    TAG: v20.8.3
    RELEASE_TEXT: ## 20.8.3
  - Firefox store releasing is now done via GitHub Actions
##[debug]found addon version: 20.8.3
##[debug]URL: https://addons.mozilla.org/api/v4/addons/%7B87477736-c9f4-44c4-8eee-7fdfaaf750e9%7D/versions/20.8.3/
##[error]Request failed with status code 400
##[debug]Node Action run completed with exit code 1
##[debug]Finishing: Run trmcnvn/firefox-addon@v1

Everything looks fine until the end:

##[debug]URL: https://addons.mozilla.org/api/v4/addons/%7B87477736-c9f4-44c4-8eee-7fdfaaf750e9%7D/versions/20.8.3/
##[error]Request failed with status code 400

pbek avatar Aug 07 '20 17:08 pbek

having same issue, maybe something changed on mozillas side?

logicalup avatar Aug 16 '21 01:08 logicalup