smooth-code / bundle-analyzer-javascript

Bundle Analyzer JavaScript clients.
https://docs.bundle-analyzer.com
11 stars 4 forks source link

Builds failing on CI with @bundle-analyzer/gatsby-plugin #5

Open brimtown opened 4 years ago

brimtown commented 4 years ago

We've been using the bundle-analyzer Gatsby plugin to measure build sizes on https://www.shopflamingo.com, but have recently had to disable it due to it failing in CI with "Cannot read property 'id` of null".

This is with @bundle-analyzer/gatsby-plugin v0.4.0 and gatsby v2.13.23.

CI output (during gatsby build):

...
info bootstrap finished - 6.210 s

success run static queries — 0.225 — 2/2 10.06 queries/second
error #98123 WEBPACK 

Generating JavaScript bundles failed

Bundle Analyzer - Cannot read property 'id' of null

See our docs page for more info on this error: https://gatsby.dev/issue-how-to
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Exited with code exit status 1
azz0r commented 4 years ago

Same issue

jlopezxs commented 4 years ago

This error is produced because a Internal Server Error of bundle-analyzer. I have the same issue. Only to provide more data:

{
    response: {
        status: 500,
        statusText: 'Internal Server Error',
        headers: {
          server: 'Cowboy',
          connection: 'close',
          'x-powered-by': 'Express',
          'access-control-allow-origin': 'https://app.bundle-analyzer.com',
          vary: 'Origin, Accept',
          'content-type': 'application/json; charset=utf-8',
          'content-length': '69',
          etag: 'W/"45-El3BV6lza2tfVAM4nP1jAX3NyQ8"',
          date: 'Tue, 03 Mar 2020 11:17:43 GMT',
          via: '1.1 vegur'
        },
        config: {
          url: 'https://api.bundle-analyzer.com/builds',
          method: 'post',
          data: '{"token":"xxx","bundleId":"df166f8d-63eb-4745-a1d4-b17f99be8901","branch":"master","commit":"3dafe609bf04d54c227e33e23379c0924c475f95","providerMetadata":{"name":"git","commit":"3dafe609bf04d54c227e33e23379c0924c475f95","branch":"master"},"config":null}',
          headers: [Object],
          transformRequest: [Array],
          transformResponse: [Array],
          timeout: 0,
          adapter: [Function: httpAdapter],
          xsrfCookieName: 'XSRF-TOKEN',
          xsrfHeaderName: 'X-XSRF-TOKEN',
          maxContentLength: -1,
          validateStatus: [Function: validateStatus]
        },
    }
gregberge commented 4 years ago

Looks like it is linked to https://github.com/smooth-code/bundle-analyzer/issues/28, any help is welcome here. If someone want to be involved in the project, send me an email to become a core contributor.