smooth-code / bundle-analyzer

Keep your webpack bundle optimized over time 📦✨
https://www.bundle-analyzer.com
GNU General Public License v3.0
96 stars 4 forks source link

Bundle analyzer API throwing 500 internal server error #28

Open Arcticae opened 4 years ago

Arcticae commented 4 years ago
{
  "message": "Request failed with status code 500",
  "name": "Error",
  "stack": "Error: Request failed with status code 500\n    at createError (/Volumes/Case Sensitive Partition/wielki-janusz/web/node_modules/axios/lib/core/createError.js:16:15)\n    at settle (/Volumes/Case Sensitive Partition/wielki-janusz/web/node_modules/axios/lib/core/settle.js:17:12)\n    at IncomingMessage.handleStreamEnd (/Volumes/Case Sensitive Partition/wielki-janusz/web/node_modules/axios/lib/adapters/http.js:236:11)\n    at IncomingMessage.emit (events.js:333:22)\n    at endReadableNT (_stream_readable.js:1201:12)\n    at processTicksAndRejections (internal/process/task_queues.js:84:21)",
  "config": {
    "url": "https://api.bundle-analyzer.com/builds",
    "method": "post",
    "data": "{\"token\":\"<TOKEN_HERE>\",\"bundleId\":\"1edc84e9-1fcb-4b32-aded-d054669be965\",\"branch\":\"feature/mini-switch-styles\",\"commit\":\"69ec234d19814dc5b12d24ff5244f234e9a3658b\",\"providerMetadata\":{\"name\":\"git\",\"commit\":\"69ec234d19814dc5b12d24ff5244f234e9a3658b\",\"branch\":\"feature/mini-switch-styles\"},\"config\":null}",
    "headers": {
      "Accept": "application/json, text/plain, */*",
      "Content-Type": "application/json;charset=utf-8",
      "User-Agent": "axios/0.19.2",
      "Content-Length": 330
    },
    "transformRequest": [
      null
    ],
    "transformResponse": [
      null
    ],
    "timeout": 0,
    "xsrfCookieName": "XSRF-TOKEN",
    "xsrfHeaderName": "X-XSRF-TOKEN",
    "maxContentLength": -1
  }
}

The api keeps 500ing on some of my builds for some of branches. Other branches seem to be fine. Can provide additional debug info if needed.

gregberge commented 4 years ago

Hello @Arcticae, this is actually a bug. Unfortunately I don't have so much time to take care of the project right now. I received two sentries on the project:

Screenshot 2020-03-07 at 14 39 24 Screenshot 2020-03-07 at 14 39 32

Maybe it could help someone to debug it.

jlopezxs commented 4 years ago

The author info would be optional, because you can commit with a git user without GitHub user. I can create a PR but I don't know how to test it without all the env variables.

gregberge commented 4 years ago

Hello @jlopezxs if you are interested to be involved in the project, I could give you keys to be able to work on the project. Feel free to reach me by email.

a-axton commented 4 years ago

For anyone wondering how to fix this without a code change, just make sure that git config --global user.email is the same as your github account email.

It's easy to find these users because it will have two different accounts on commit messages, one will be the git account with no profile link and an anonymous profile pic the other would be the actual github account image

gregberge commented 4 years ago

Hello, I actually don't have time to maintain this project, I am looking for maintainers.