Open brimtown opened 4 years ago
Same issue
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]
},
}
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.
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
):