Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE #1500

Open
liudonghua123 opened this issue Apr 25, 2020 · 55 comments

Comments

@liudonghua123
Copy link

Thank you for taking the time to file an issue!

This tracker is for issues related to:

  • Dart core libraries ("dart:async", "dart:io", etc.)
  • Dart VM
  • dart2js
  • dev_compiler

I followed the instructions on https://dart.dev/tutorials/web/get-started, https://dart.dev/web/debugging. And when I opened the configured chrome devtools, refresh the page. Then the console log the following warnings.

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler/dart_sdk.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

I can set breakpoint in dart code in source panel. The debugger stopped at the breakpoint, However the types of variable can't shown.

微信图片_20200425124756

This is the console of webdev serve.

D:\code\dart\quickstart-web>webdev serve
[INFO] Reading cached asset graph completed, took 162ms
[INFO] Checking for updates since last build completed, took 580ms
[INFO] Serving `web` on http://127.0.0.1:8080
[INFO] Running build completed, took 205ms
[INFO] Caching finalized dependency graph completed, took 118ms
[INFO] Succeeded after 328ms with 0 outputs (0 actions)
[INFO] -------------------------------------------------------------------------------------

This is the chrome devtools setttings.

微信图片_20200425124951

@alexflav23
Copy link

+1, this is painful to the point of ridiculous.

@mahmoudsalah37
Copy link

i have same warning:
DevTools failed to load SourceMap: Could not load content for http://localhost:12205/dwds/src/injected/client.dart.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

@kevmmdev
Copy link

i am having this issue now out of nowhere

@jadamec
Copy link

jadamec commented May 19, 2020

Same issue here, it would be nice to fix it soon. Thanks!

@radverg
Copy link

radverg commented May 21, 2020

Same issue, just started using dart and cannot debug properly.

@DaljitKhalsa
Copy link

I am also having the same issue on my website too. I am using a plugin name LSCache which i believe is responsible for this. I am having this issue on this site https://bestandcheapbondcleaning.com.au/

If you also see the issue at your end then that mean the issue is not solved. But i will try to fix it from the cache plugin and if it will be possible to update this ticket, i will update it too.

@upkesh
Copy link

upkesh commented May 26, 2020

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler/dart_sdk.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Getting same issue with dart version 2.5.2

@Raynder
Copy link

Raynder commented May 28, 2020

Agora fudeu! todo dia vai aparecer um dizendo sobre esta falha. espero q resolvam logo!

@DaljitKhalsa
Copy link

Hi guys can someone help by telling why all of the sudden everyone is facing this error? and how to fix. As i found on all the websites i have created this error is showing. You can see i have tons of issues on my own domain https://www.khalsa-website-designers.net/ if someone knows about this latest issue and how to fix please share it with us too.

@Dagim12
Copy link

Dagim12 commented Jun 18, 2020

Same issue here, Swagger stuck loading.

DevTools failed to load SourceMap: Could not load content for http://localhost:5555/swagger-ui-standalone-preset.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

@J4ckTh3R1qp3r
Copy link

Same issue

@marktanner1331
Copy link

running webdev in release mode resolved this for me. webdev serve -r

@ModelEarth
Copy link

Try removing # if it occurs after a // within a comment.
Replacing //# with // fixed for me elsewhere.

@SpringSrikanth
Copy link

DevTools failed to load SourceMap: Could not load content for http://localhost:4200/bootstrap.min.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE getting issue how to fix

@KhomZ
Copy link

KhomZ commented Aug 4, 2020

DevTools failed to load SourceMap: Could not load content for https://unpkg.com/peerjs.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

@dknavle
Copy link

dknavle commented Aug 10, 2020

Same issue, Even in the script src="https://unpkg.com/[email protected]/dist/peerjs.min.js" but it's loading file from https://unpkg.com/peerjs.min.js.map and getting 404.

@Gauravmokashi
Copy link

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

@kabundege
Copy link

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

could you share a screenshot (s)

@boxoffun
Copy link

could you share a screenshot (s)
QIP-Shot-Screen-349 QIP-Shot-Screen-350

@jaydeep-aipl

This comment has been minimized.

@Boopalan-M
Copy link

could you share a screenshot (s)
QIP-Shot-Screen-349 QIP-Shot-Screen-350

i enabled both again i got same error

@Boopalan-M
Copy link

i enabled both again i got same error

@imreka
Copy link

imreka commented Nov 15, 2020

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

thanks. work for me 👍

@mnjayswal84
Copy link

This worked for me
Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.
Refresh.

thanks. work for me 👍

Thanks. It works for me

@fweth
Copy link

fweth commented Mar 1, 2021

I have this issue but I don't use the SDK.

@JimboRoxas
Copy link

DevTools failed to load SourceMap: Could not load content for http://127.0.0.1:8000/css/adminlte.css.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.
Refresh. (I already did this but still, I have a problem do you have any update guys on how to fix this? I am using laravel and the template came from adminlte Thank you)

@2014044
Copy link

2014044 commented Mar 16, 2021

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

Worked for me too, thanks.

@deal-withit
Copy link

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

worked for me as well......
thanks.

@iCodeDesigns
Copy link

+1

1 similar comment
@RaedSawanAboAlfooz
Copy link

+1

@Jay1274
Copy link

Jay1274 commented Jul 15, 2021

Hi guys i got 404 error code failure icons are not showing in i have paid users on my site. Please help . Link boostrap.min.css.

@hawraz93
Copy link

Delete /*# sourceMappingURL=bootstrap.min.css.map / in css/bootstrap.min.css
and delete /
# sourceMappingURL=bootstrap.css.map */ in css/bootstrap.css

@temchannat
Copy link

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

I have the same problem, I have tried to follow this but still doesn't work. Then I check those setting back, and it works.

@vladimir575
Copy link

89048521056

@vladimir575
Copy link

Нужна помощь

@vladimir575
Copy link

ERR_HTTP_RESPONSE_CODE_FAILURE

1 similar comment
@vladimir575
Copy link

ERR_HTTP_RESPONSE_CODE_FAILURE

@joshualitt
Copy link

Closing this bug due to the proposed work around.

@SulemanMirz
Copy link

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

I tried the same but isn't working for me.
my error is :

Uncaught (in promise) DOMException: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
DevTools failed to load source map: Could not load content for http://localhost:8081/debugger-ui/ui.e31bb0bc.js.map: HTTP error: status code 500, net::ERR_HTTP_RESPONSE_CODE_FAILURE

and app crashes when i try to start debugging

@avinrique
Copy link

found any way to solve that issue??

@Kfelts
Copy link

Kfelts commented Jan 29, 2022

Same problem- none of the workarounds are working. I can see the files and all of the respective folders, but when I click on the file, I get an error.

@sareng002
Copy link

saya mendapatakan kesalahan DevTools failed to load source map: Could not load content for http://app-bootsrap.test/js/bootstrap.esm.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE
ada yang tau penyebapnya.....?

@joshualitt joshualitt reopened this Feb 11, 2022
@joshualitt joshualitt transferred this issue from dart-lang/sdk Feb 11, 2022
@nshahan
Copy link
Contributor

nshahan commented Feb 12, 2022

I can confirm when running webdev serve some files don't look like they are being served correctly:

  • http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler_stack_trace/stack_trace_mapper.dart.js
  • .dart files referenced from http://127.0.0.1:8080/packages/build_web_compilers/src/dev_compiler/dart_sdk.js.map

@annagrin I labeled this as webdev but I suppose if could be a failure of file copies into the right location during the build, not sure exactly.

@Pre1ude0
Copy link

Pre1ude0 commented Jun 12, 2022

Sorry for reopening this thread but i still cant fix this even after trying everything. I would appreciate if someone would link a fix.
Edit: FIXED THIS: was using betterdiscord and there was a faulty extension that overloaded my pc.

@casualPavel
Copy link

Seems to do the trick. Are we missing anything with those two things disabled? Yes and no. Here's an article:

What are Javascript Source Maps?

@mcheung610
Copy link

This worked for me
Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.
Refresh.

worked for me as well...... thanks.

This worked for me as well
Go to bed -> wake up -> forget about this problem

@erikmstg
Copy link

erikmstg commented Jan 1, 2023

o the poi

solved bro, thanks

@Omkareshwar14
Copy link

Worked for me as well
Thanks

@paul-n-chamberlain
Copy link

This worked for me

Go to inspect -> settings gear -> Uncheck 'enable javascript source maps' and 'enable css source map'.

Refresh.

This just gets rid of the error, but doesn't solve the issue. If you uncheck the JS and CSS source maps then you are forced to debug within the potentially minified or transpiled (if using TS) JS, which is not what you want to be doing. I feel like this might be fine for some, but for others it would be nice to have a path forward to actually be able to utilize the source maps for their intended purpose: debugging.

pjnw1236 added a commit to pjnw1236/QuizProject that referenced this issue Jun 17, 2023
@mkhalifah95
Copy link

For me it was an issue with my 'sass-loader' webpack configs, basically I was setting sourceMapContents: false which caused that issue to happen, removing that option made the source map working again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests