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 https://unpkg.com/peerjs.min.js.map #721

Open
nick0702y opened this issue Aug 19, 2020 · 29 comments
Labels
client related to peerjs client

Comments

@nick0702y
Copy link

peerjs version used 1.3.1

Error loading peerjs.min.js.map
Error Report

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

Please help with this issue

@Nour490-code
Copy link

Same Problem

1 similar comment
@snehapaka
Copy link

Same Problem

@szareian
Copy link

szareian commented Aug 21, 2020

You probably have to disable javascript source map in inspect -> settings (Gear icon) -> under sources and then refresh your browser.

source: dart-lang/webdev#1500

@AlyNeumann
Copy link

Same problem

@germanvalentino
Copy link

same problem

@abhay27chauhan
Copy link

@szareian thanks

@2Gunz
Copy link

2Gunz commented Dec 29, 2020

same problem

2 similar comments
@AJOO7
Copy link

AJOO7 commented Jan 9, 2021

same problem

@derd1011
Copy link

same problem

@karimk123
Copy link

Is this still not fixed??

@dcarlson661
Copy link

dcarlson661 commented Mar 9, 2021

@szareian Thanks!

Note: this is a current session only, reloads the page in the setting advanced

@GiuseppeSaponieri
Copy link

? So

@dcarlson661
Copy link

Hi,
Because I didn't realize that it was a session only and when I restarted things and reconnected the message came back. So not knowing it was session only I started looking for other problems. Until I realized I had to go back into settings and re-check the box.
That's all.
DC

@germanvalentino
Copy link

I have the same problem, it seems to be not solved yet. I think nobady is working on this issue.
German

@Guama1239
Copy link

El mismo problemo!!!

@zahra-ove
Copy link

same problem!

@karimk123
Copy link

Is it fixed?

@Seniorprogrammer-123
Copy link

me too

@ThePlatinum
Copy link

update on the fix please, it's killing here

@DhruvDutta
Copy link

same problem!

@byhyakimaro
Copy link

drug, this problem exists in 2020 and has nothing so far

@Kana-creator
Copy link

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

Anny one to help me out with this issue

@levlaz
Copy link

levlaz commented Apr 24, 2021

Hello,

First, I think its worth noting that if you are having a problem with the peerJS library itself there is a 99.999% chance it has nothing to do with this particular issue.

This error happens because your browser is unable to load the source map file from unpkg. This should have no bearing on your ability to use this library at all. The source map is strictly used for debugging within a web browser.

The specific reason why this is happening is related to this issue from parcel which is what this project uses for creating the JS bundle: parcel-bundler/parcel#3000

If you look at the bottom of the peerjs bundle you will see this line:

//# sourceMappingURL=/peerjs.min.js.map

The sourceMappingURL should not have / because it is causing the reference url to go to https://unpkg.com/peerjs.min.js.map (which 404s) instead of https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map where it actually lives.

I think the proper way to fix this is by changing the configuration of parcel to make the URL relative instead of absolute.

In the meantime, if you actually need to load the source map files you can do it manually in chrome using the full sourcemap url: https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map

@advokrat
Copy link

advokrat commented Jul 12, 2021

Hey, I am in need of including this source map in a project, but it needs to load seamlessly on any device. Is there any workaround so that I can use this peerJS library robustly?

@bagaswap111
Copy link

Have same problem here. i am using safari for running development. might be caused by the browser suport (?). i've tried on ms edge too, though the result is the same, just like here
image

may be would try this solution, however i havent got it clear how to change the parcel.

Hello,

First, I think its worth noting that if you are having a problem with the peerJS library itself there is a 99.999% chance it has nothing to do with this particular issue.

This error happens because your browser is unable to load the source map file from unpkg. This should have no bearing on your ability to use this library at all. The source map is strictly used for debugging within a web browser.

The specific reason why this is happening is related to this issue from parcel which is what this project uses for creating the JS bundle: parcel-bundler/parcel#3000

If you look at the bottom of the peerjs bundle you will see this line:

//# sourceMappingURL=/peerjs.min.js.map

The sourceMappingURL should not have / because it is causing the reference url to go to https://unpkg.com/peerjs.min.js.map (which 404s) instead of https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map where it actually lives.

I think the proper way to fix this is by changing the configuration of parcel to make the URL relative instead of absolute.

In the meantime, if you actually need to load the source map files you can do it manually in chrome using the full sourcemap url: https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map

any one have tried?

@SecretSenator
Copy link

Have same problem here. i am using safari for running development. might be caused by the browser suport (?). i've tried on ms edge too, though the result is the same, just like here
image

may be would try this solution, however i havent got it clear how to change the parcel.

Hello,
First, I think its worth noting that if you are having a problem with the peerJS library itself there is a 99.999% chance it has nothing to do with this particular issue.
This error happens because your browser is unable to load the source map file from unpkg. This should have no bearing on your ability to use this library at all. The source map is strictly used for debugging within a web browser.
The specific reason why this is happening is related to this issue from parcel which is what this project uses for creating the JS bundle: parcel-bundler/parcel#3000
If you look at the bottom of the peerjs bundle you will see this line:

//# sourceMappingURL=/peerjs.min.js.map

The sourceMappingURL should not have / because it is causing the reference url to go to https://unpkg.com/peerjs.min.js.map (which 404s) instead of https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map where it actually lives.
I think the proper way to fix this is by changing the configuration of parcel to make the URL relative instead of absolute.
In the meantime, if you actually need to load the source map files you can do it manually in chrome using the full sourcemap url: https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map

any one have tried?

Is the problem fixed now?

@selfcontrol7
Copy link

Please, until now, there is still no fix for this issue?

@Santoshah
Copy link

Santoshah commented Feb 21, 2022

Hey Guys I think i have found the solution.

I was having same error as title as you can see in my screenshot.

image

GET http://localhost:443/peerjs/id?ts=16454403347120.7762317840464861 net::ERR_CONNECTION_REFUSED

my peer commnad running at 3001

santoshshah@192 video-webrtc % peerjs --port 3001
Started PeerServer on ::, port: 3001, path: / (v. 0.6.1)

As the error is pointing towards localhost:443 in the screenshot, I change the port of peerjs from 3001 to 443

peerjs --port 443

santoshshah@192 video-webrtc % peerjs --port 443 
Started PeerServer on ::, port: 443, path: / (v. 0.6.1)
Client connected: 7f449c07-dc4c-4b65-b164-8f6f503520d5

and refresh my browser and got this running message. I got Client connected: 7f449c07-dc4c-4b65-b164-8f6f503520d5.

The error message went away but I still see warning of peerjs source map warning.

image

alainpaulinn added a commit to alainpaulinn/imperiumline that referenced this issue Mar 29, 2022
@alainpaulinn
Copy link

Hello
I solved this issue by downloading https://unpkg.com/peerjs@1.3.2/dist/peerjs.min.js.map file instead of loading from the url, i included the file in my Javascript folder,
and at the end of the code in this file I removed //# sourceMappingURL=/peerjs.min.js.map and replaced it by //# sourceMappingURL=peerjs.min.js.map
The warning should disappear

@irgalamarr irgalamarr added the client related to peerjs client label Feb 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client related to peerjs client
Projects
None yet
Development

No branches or pull requests