Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle API errors #83

Open
fregante opened this issue Jan 14, 2024 · 0 comments
Open

Handle API errors #83

fregante opened this issue Jan 14, 2024 · 0 comments

Comments

@fregante
Copy link
Owner

The errors are now handled in the cli, that code should be moved here.

I might just have to read the docs.

Here are some responses

upload existing

{
    kind: 'chromewebstore#item',
    id: 'nphhdjlnhlicpjcpanamejkfehegdclg',
    uploadState: 'FAILURE',
    itemError: [
      {
        error_code: 'PKG_INVALID_VERSION_NUMBER',
        error_detail: 'Invalid version number in manifest: 23.12.30.553. Please make sure the newly uploaded package has a larger version in file manifest.json than the published package: 23.12.30.554.'
      }
    ]
}

publish

 {
    kind: 'chromewebstore#item',
    item_id: 'nphhdjlnhlicpjcpanamejkfehegdclg',
    status: [ 'OK' ],
    statusDetail: [ 'OK.' ]
  }
{
    error: {
      code: 400,
      message: 'Publish condition not met: You may not edit or publish an item that is in review.',
      errors: [
        {
          message: 'Publish condition not met: You may not edit or publish an item that is in review.',
          domain: 'chromewebstore.access',
          reason: 'badRequest'
        }
      ]
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant