Code: NoSuchKey
Message: The specified key does not exist.
Key: 86eeokt1plvz236jvdsql3jhqyb7je/0.0.1/assets/img/bob_logo.png
RequestId: DEDF8120AB08EB4E
HostId: B1G+tNdKTwlG4ewK8mMxjRVq3QYW8tC/PnfgvjlN4wUu2jxz5CRqTHpn1bAb6HaJPYS6WCpsk08=
already found the posts refering to this problem, but could not fix it yet.
Internally I reference my assets like this:
<img src="…/assets/img/…>
I’m seeing the same issue, with Vue and/or Preact. The files need a publicPath set but I don’t have a way of knowing where the cdn is going to put them beforehand.
I have the exact same issue (Angular) local is great. Using ng build --prod, but with optimization set to false to skip minification. That goes in a “public/” folder which contains an index.html, many bundles js files, and one css file, as well as an assets folder. I zip everything while inside the folder…
The first problem is indeed that index.html, which loads correctly, has relative links that use the base url without the full path, which includes the version and md5 hash. In other words index html correctly uses the full path: "https://48a6l522li5kdnyiwwfcleeu86aehj.ext-twitch.tv/48a6l522li5kdnyiwwfcleeu86aehj/0.0.1/cacca402562a2507cce0809192c10a0b/index.html..."
However the files relatively referenced in index.html access an incomplete path: "https://48a6l522li5kdnyiwwfcleeu86aehj.ext-twitch.tv/polyfills-es2015.1f07717b803649b0cda9.js"
Naturally I checked to see if my files were in the correct path locations, and they were. I was able to test, in a broken way, if change the base href would help. Setting the base href to: "https://48a6l522li5kdnyiwwfcleeu86aehj.ext-twitch.tv/48a6l522li5kdnyiwwfcleeu86aehj/0.0.1/cacca402562a2507cce0809192c10a0b/"
solves all my problems… until I upload my zip and the md5 changes again. Which is good but bad for me getting this to work. I want to know if anyone figured out a solution here. Putting * anywhere, like in the forum post above did not get me anywhere.
I was thinking of dynamically changing the base href but I can’t have inline scripts, and I can’t access the scripts I create lol…
Also this feels like it should not be an issue unless 1) Angular/webpack is not allowed or 2) My setup of is off in some not obvious way, that I’m hoping some with fresh eyes can help me with!
Check the HTML and ensure they are relative links, eg ./polyfills-es2015.1f07717b803649b0cda9.js or polyfills-es2015.1f07717b803649b0cda9.js.
If the link in the HTML is /polyfills-es2015.1f07717b803649b0cda9.js then that’s not a relative link and as the extension isn’t hosted in the root directory it’ll fail.
As I mentioned before I also tried, which shouldn’t work due to the incorrect hash but it did get rid of the error. Maybe it takes some time to remove the old version/hash. But I digress, I’ll attach index.html below if that helps.
I changed <base href="/" /> to <base href="" /> because you are correct that absolute pathing had to be happening somewhere and that was the only likely culprit!
Now I’ve got all these other path issue but those feel more reasonable… for some reason lol.