dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 74 forks source link

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 4 years ago

liudonghua123 commented 4 years ago

Thank you for taking the time to file an issue!

This tracker is for issues related to:

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 commented 4 years ago

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

mahmoudsalah37 commented 4 years ago

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 commented 4 years ago

i am having this issue now out of nowhere

jadamec commented 4 years ago

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

radverg commented 4 years ago

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

DaljitKhalsa commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

DaljitKhalsa commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Same issue

marktanner1331 commented 4 years ago

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

ModelEarth commented 4 years ago

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

SpringSrikanth commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

Gauravmokashi commented 4 years ago

This worked for me

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

Refresh.

kabundege commented 4 years ago

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 commented 4 years ago

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

jaydeep-aipl commented 4 years ago

Nice website! I inspected it for errors and don't see any. Did you resolve this problem? I'm getting it in my main.dart file. When I uncheck "enable javascript source maps", refresh -- the error goes away. But on your website, even though that remains checked, I don't see an error. Mine is visible at http://focusonmoney.in. Again, the error I'm getting is with main.dart.

Boopalan-M commented 3 years ago

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

i enabled both again i got same error

Boopalan-M commented 3 years ago

i enabled both again i got same error

imreka commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

JimboRoxas commented 3 years ago

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 commented 3 years ago

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.

Sesughter01 commented 3 years ago

Awesome this worked for me too. Thanks @Gauravmokashi

davidefella commented 3 years ago

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

works for me!

sowmyasridharamurthy commented 3 years ago

It really annoying, is there any solution yet. I am facing the same issue .

Is there any solution yet?

image

SrishtiYadav17 commented 3 years ago

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

thanks. work for me 👍

This worked for me. Thanks.

Sesughter01 commented 3 years ago

Ok thanks I will give you feedback

On Sun, May 30, 2021, 8:06 PM Srishti Yadav @.***> wrote:

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

thanks. work for me 👍

This worked for me. Thanks.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <dart-lang/webdev#1500>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANIMVZFPIWEGODEWQ7TO6VTTQKEB3ANCNFSM4MQSX62Q .

deal-withit commented 3 years ago

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 commented 3 years ago

+1

RaedSawanAboAlfooz commented 3 years ago

+1

Jay1274 commented 3 years ago

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 commented 3 years ago

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

temchannat commented 3 years ago

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 commented 2 years ago

89048521056

vladimir575 commented 2 years ago

Нужна помощь

vladimir575 commented 2 years ago

ERR_HTTP_RESPONSE_CODE_FAILURE

vladimir575 commented 2 years ago

ERR_HTTP_RESPONSE_CODE_FAILURE

joshualitt commented 2 years ago

Closing this bug due to the proposed work around.

SulemanMirz commented 2 years ago

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 commented 2 years ago

found any way to solve that issue??

Kfelts commented 2 years ago

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 commented 2 years ago

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.....?

nshahan commented 2 years ago

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

@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 commented 2 years ago

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 commented 2 years ago

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?