stacktrace-gps icon indicating copy to clipboard operation
stacktrace-gps copied to clipboard

pinpoint gets Http error as it tries retrieve with webpack :////

Open viviancpy opened this issue 7 years ago • 7 comments

I use StackTraceGPS. pinpoint to get the un-uglified stack but got error when stacktracegps starts to find my vendor code (REACT) from webpack. image

Error: Error: HTTP status: 0 retrieving webpack:///~/react/lib/ReactCompositeComponent.js at XMLHttpRequest.r.onreadystatechange

Webpack config: devtool: 'source-map', entry: './src/index', target: 'web', output: { path: __dirname + '/dist', // Note: Physical files are only output by the production build tasknpm run build`. publicPath: '/myapp/', filename: 'bundle.js' }, devServer: { contentBase: './dist' }, plugins: [ new webpack.DefinePlugin(GLOBALS), new webpack.optimize.UglifyJsPlugin({ compress: { warnings: false }, output: { comments: false }, sourceMap: true }), new BundleAnalyzerPlugin({analyzerMode: 'static', generateStatsFile: true, openAnalyzer: false}), extractSass ],

`

viviancpy avatar Aug 30 '17 06:08 viviancpy

I have the same problem with "Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https." Error.

pierre-luc avatar Sep 29 '17 03:09 pierre-luc

I also have the same problem with Angular 5.x + Angular CLI. Does anyone know a fix or workaround?

lankaapura avatar Jan 26 '18 06:01 lankaapura

Any fix for this yet?

AdrianMrn avatar Mar 11 '19 11:03 AdrianMrn

hmm same issue. any one have a solution or another lib which works with webpack?

OneCyrus avatar May 18 '19 16:05 OneCyrus

I'm also hitting this issue. I suspect the solution involves reconfiguring webpack-config.js, but I have no idea how. Anyone have any ideas?

rmehlinger avatar May 31 '19 19:05 rmehlinger

Having the same issue in Angular 8. It does complain about CORS:

Access to XMLHttpRequest at 'webpack:///polyfills.js' from origin 'http://localhost:4200' has been blocked by CORS policy

ERROR Error: Uncaught (in promise): Error: HTTP status: 0 retrieving webpack:///polyfills.js

DmitryEfimenko avatar Jan 09 '20 20:01 DmitryEfimenko

Workaround: https://github.com/stacktracejs/stacktrace-gps/issues/65

MetaSam avatar Oct 20 '20 14:10 MetaSam