rollbar-sourcemap-webpack-plugin icon indicating copy to clipboard operation
rollbar-sourcemap-webpack-plugin copied to clipboard

Retry if fail to upload

Open nickbeckenham opened this issue 7 years ago • 6 comments

Is it possible to add a retry up to say 3-4 times to upload the source maps to rollbar. I've noticed that my build will sporadically fail due to an upload failing.

nickbeckenham avatar Nov 11 '17 09:11 nickbeckenham

Sporadically ? My deployments systematically fail 3 times out of 4 because of Rollbar source maps uploads with the following error: ERROR in RollbarSourceMapPlugin: failed to upload blah.js.map to Rollbar: write EPIPE

lucsky avatar Sep 14 '18 14:09 lucsky

RollbarSourceMapPlugin: failed to upload foo.js.map to Rollbar: There was an internal error processing your request. Please try again. If you'd like to contact us about this issue, email [email protected] . For system status, visit http://status.rollbar.com

I am also getting sporadically failed builds that will succeed after a rebuild. It's a shame that I have to re-run my entire build process just to kick off the rollbar upload step. A retry option would be superb!

monkpit avatar Sep 19 '18 16:09 monkpit

This is also a huge issue for my team. One failed upload causes our entire build to fail. This morning, every single Dependabot update branch build has failed twice so far. That's 20 builds I've had to restart already.

I honestly don't even care about a retry. I'd be more interested in setting an "acceptable failure threshold" - maybe 5 files by default. 1 failed upload is a much smaller deal than tons of failed builds.

I would definitely help out if we could come to a consensus on the behavior.

pjaws avatar Apr 22 '20 16:04 pjaws

@pjaws thanks for the input.

As short term workaround, you might want to use ignoreErrors: true config option.

brandondoran avatar Apr 22 '20 22:04 brandondoran

that short term workaround is permanent solution it seem :)

geekvikas avatar Sep 14 '20 18:09 geekvikas

I've created a PR for adding a retry option to the plugin... https://github.com/thredup/rollbar-sourcemap-webpack-plugin/pull/392

The best scenario would be that rollbar wouldn't fail sporadically, but until then, this might help you out

mauriciosoares avatar Mar 17 '21 19:03 mauriciosoares