API error while publishing App on Chrome Web Store
Reported by
kristi.k...@wabion.ch,
Nov 26
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36 Steps to reproduce the problem: 1. Replace Bearer Token with valid token 2. Replace AppID 3. Make Post request curl -X POST \ 'https://www.googleapis.com/upload/chromewebstore/v1.1/items/%2AappIdHere%2A/publish?publishTarget=default' \ -H 'Authorization: Bearer XYZ' \ -H 'Content-Type: application/zip' \ -H 'cache-control: no-cache' What is the expected behavior? { "kind": "chromewebstore#item", "item_id": string, "status": [ string ], "statusDetail": [ string ] } What went wrong? { "error": { "errors": [ { "domain": "global", "reason": "badContent", "message": "Unsupported content with type: application/json" } ], "code": 400, "message": "Unsupported content with type: application/json" } } Did this work before? N/A Does this work in other browsers? N/A Chrome version: 70.0.3538.110 Channel: stable OS Version: 10.0 Flash Version: I tried with different Content-Types and it always yielded the same error.
,
Nov 27
,
Nov 28
Thanks for filing the issue... @reporter: Could you please provide any sample file or an application that reproduces the issue so that it would be really helpful for further triaging of the issue.
,
Nov 29
Hello, I tried the command with curl and it works perfectly, but if you try to run it with Node.js request or Postman, whatever Content-Type used will fail with the message "Unsupported content with type:..." I have already included a postman file in the issue. In attachment you can find the Node.js request too. Thank you.
,
Nov 29
Thank you for providing more feedback. Adding the requester to the cc list. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot |
||||
►
Sign in to add a comment |
||||
Comment 1 by dtapu...@chromium.org
, Nov 26