jspm / project

Roadmap and management repo for the jspm project
161 stars 8 forks source link

Import of `jspm.dev/three/src/Three.js` worked first time, but now it is failing. #94

Open trusktr opened 3 years ago

trusktr commented 3 years ago

I'm testing this in console

{
const start = performance.now()
import('https://jspm.dev/three/src/Three.js')
    .then(m => {const end = performance.now(); console.log('jspm: ', end-start, m)})
}

It managed to work once, but now it seems to be failing for me with NET_ERR. No issue with skypack or unpkg though.

trusktr commented 3 years ago

And it just started working again. :thinking: I wonder what was happening.

trusktr commented 3 years ago

Seems to have been intermittent issues. I can't reproduce it now.

guybedford commented 3 years ago

Thanks for posting the issue here though.

trusktr commented 11 months ago

I've had this issue again testing things today, for example running a lot of import()s in the console to test them, and sometimes them failing.

Does JSPM have like a rate limit perhaps? Am I trying too many times?

guybedford commented 10 months ago

Are you still seeing this after further testing? If you have any further info to share I'd be very interested to know about it.

trusktr commented 10 months ago

I can't reproduce right now.

trusktr commented 10 months ago

Ok, I tried lots of times (refresh browser, try again, refresh browser, try again, etc), and I finally reproduced:

Errors are like this in Chrome:

GET https://jspm.dev/npm:three@0.157.0/src/renderers/shaders/ShaderChunk/lights_lambert_pars_fragment.glsl.js net::ERR_FAILED

In Network tab, there's not even an error code, because it seems like the response never made it.

Screenshot 2023-10-24 at 11 28 43 PM
guybedford commented 10 months ago

If you hit network issues like this in future, share a link and a dump of https://cachefly.cachefly.net/CacheFlyDebug.