Skip to content
This repository was archived by the owner on Nov 20, 2023. It is now read-only.
This repository was archived by the owner on Nov 20, 2023. It is now read-only.

About Sentry CLI Plugin fail #75

@my9074

Description

@my9074

I use sentry-webpack-plugin to upload source map, but Error while compiling:

> client@0.1.0 build /Users/miaoyu3/work/skeletons/client
> vue-cli-service build


⠹  Building for production...

 ERROR  Failed to compile with 1 errors                                                                                                                                  13:53:25

Sentry CLI Plugin: Command failed: /Users/miaoyu3/work/skeletons/client/node_modules/@sentry/cli/sentry-cli releases files sk-testv1 upload-sourcemaps ../server/app --rewrite
error: API request failed
  caused by: sentry reported an error: unknown error (http status: 413)

 ERROR  Build failed with errors.

webpack config:

//client/vue.config.js
configureWebpack: {
    plugins: [
      new SentryPlugin({
        include: '../server/app',
        release: 'sk-testv1',
        configFile: 'sentry.properties'
      })
    ]
  },

directory structure:

├── client
│   ├── babel.config.js
│   ├── .sentryclirc
│   ├── package-lock.json
│   ├── package.json
│   ├── public
│   ├── src
│   └── vue.config.js
├── server
│   ├── README.md
│   ├── README.zh-CN.md
│   ├── app
│   ├── appveyor.yml
│   ├── config
│   ├── logs
│   ├── package-lock.json
│   ├── package.json
│   ├── run
│   └── test

I found the fault in https://github.com/getsentry/sentry-cli/blob/master/js/helper.js#L143. I guess 413 status code is due to too large file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions