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.

Could not read source map for localhost source with Unexpected 503 response from source map at local 127.0.0.1 IP address

See original GitHub issue

Describe the bug When using Ionic 5, Angular 13 and and JS Debug extension, I’m getting many errors like the following when attempting to debug the app:

Could not read source map for http://localhost:8100/styles.js: Unexpected 503 response from http://127.0.0.1:8100/styles.js.map: connect ECONNREFUSED 127.0.0.1:8100

What’s interesting is that loading up the source map address with localhost http://localhost:8100/styles.js.map instead of the IP address version http://127.0.0.1:8100/styles.js.map retrieves the file and doesn’t have a 503 response.

VS Code Version: 1.69.2 on MacOS Monterey on Silicon M1

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
connor4312commented, Nov 21, 2022

localhost is not always the same as 127.0.0.1 when on ipv6-enabled networks

0reactions
tulipandmillscommented, Nov 30, 2022

It took me weeks to end up on this solution. I think it is very important to get this fixed for a clean installed Mac Os with the latest Angular Cli. ng new and vs code debug should be working out of the box

Read more comments on GitHub >

github_iconTop Results From Across the Web

Suddenly gets Could not read source map in VSCode using ...
The debugger would work on node 16 but not on node 18. What made it work is adding the flag '--host=127.0.0.1' to the...
Read more >
Could not read source map for … ENOENT: no such file or ...
ENOENT: no such file or directory. The error occurred in Bebug Console. Could not read source map for file:///Users//functions/node_modules/@ ...
Read more >
Source Maps - Rollbar Docs
To successfully upload source maps, we will walk through the following steps. Raise descriptive JavaScript errors; Configure _rollbarConfig to support source ...
Read more >
Troubleshoot Cloud Run issues
This page shows you how to resolve issues with Cloud Run. For other issues not listed below, check to see if they may...
Read more >
DevTools failed to load source map: Could not load content for ...
“DevTools failed to load source map: Could not load content for chrome-extension://efbobpikdmjaaklfkdlgfopochnjadab/content/content.js.map: System error: ...
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