New issue
Advanced search Search tips

Issue 908399 link

Starred by 1 user

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

API error while publishing App on Chrome Web Store

Reported by kristi.k...@wabion.ch, Nov 26

Issue description

UserAgent: 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.
 
chromeWebStore.postman_collection.json
1.1 KB View Download
Components: Webstore
Labels: Needs-Triage-M70
Cc: swarnasree.mukkala@chromium.org
Labels: Triaged-ET Needs-Feedback
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.
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.
nodeRequest.txt
614 bytes View Download
Project Member

Comment 5 by sheriffbot@chromium.org, Nov 29

Labels: -Needs-Feedback
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