question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sourcemaps not found

See original GitHub issue

Hi there,

we use airbrake for minified javascript which references the corresponding sourcemaps via //# sourceMappingURL=main.js.map (as emitted by webpack). However, the sourcemaps are not found on airbrake.io. In the context of an error, this is shown:

 "sourceMapErrors": {
    "https://webknossos.brain.mpg.de/assets/bundle/main.js%3Fnocache=ddcfd829f626b5e2191c979e8aa7087c14fbdea4": "http.Get url=\"https://webknossos.brain.mpg.de/assets/bundle/main.js%3Fnocache=ddcfd829f626b5e2191c979e8aa7087c14fbdea4\": got 404 Not Found, expected 200 OK",
    "https://webknossos.brain.mpg.de/assets/bundle/vendors~main.js%3Fnocache=ddcfd829f626b5e2191c979e8aa7087c14fbdea4": "http.Get url=\"https://webknossos.brain.mpg.de/assets/bundle/vendors~main.js%3Fnocache=ddcfd829f626b5e2191c979e8aa7087c14fbdea4\": got 404 Not Found, expected 200 OK"
  },

The source map for https://webknossos.brain.mpg.de/assets/bundle/main.js is at https://webknossos.brain.mpg.de/assets/bundle/main.js.map (as the last line of main.js also indicates). However, the source map url is not even tried according to the error message? Maybe the cache busting (main.js?nocache=commithash) breaks something?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vmihailencocommented, Jun 29, 2018

Well, at some point ? gets escaped and that is the problem. Can you send me airbrake.io UI link to the error to vlad@airbrake.io?

0reactions
philippottocommented, Jun 29, 2018

I’m using Chrome 65, but you are right: the airbrake-js version was outdated. I updated it to the newest one. Now, the notices endpoint is used. However, the sourcemaps error (including %3F) is still there:

"sourceMapErrors": {
    "https://updateairbrake.webknossos.xyz/assets/bundle/vendors~main.js%3Fnocache=dc9b10e6f2cc545b18925575bbb637af9102bd69": "http.Get url=\"https://updateairbrake.webknossos.xyz/assets/bundle/vendors~main.js%3Fnocache=dc9b10e6f2cc545b18925575bbb637af9102bd69\": got 404 Not Found, expected 200 OK"
  },

However, the request payload uses the proper formatting using ?.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Source Maps not working with Webpack - Stack Overflow
In bundle.js you will see original transpiled webpack bundle - this is normal behaviour. Open webpack:// and you will see your project files ......
Read more >
Troubleshooting Source Maps for JavaScript
Verify your source maps work locally. If you find that Sentry is not mapping filename, line, or column mappings correctly, you should verify...
Read more >
TS6053 - node_modules/source-map/source-map not found in ...
It is a Intelisense error, and not a build error. All my javascript is processed outside of Visual Studio with Webpack and everything...
Read more >
[BUG] Source maps not found in dev server for third party ...
I was running into this problem with web-test-runner coverage mode looking up these broken sourcemaps and causing logspam. The way the dev ...
Read more >
Source Map Troubleshooting - Rollbar Docs
Sometimes source maps can be generated with no content in them, or in an invalid format, e.g. base64. Check the source maps that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found