db48x / emularity

easily embed emulators
GNU General Public License v3.0
621 stars 113 forks source link

Better error messages when we fail to decompress a zip file #23

Open kailledargun opened 7 years ago

kailledargun commented 7 years ago

Please help. I have pulled the repo, did a git annex on the files requested in the example_dosbox.html file, uncompressed the gz files and cannot get the page to load. As a side note, one cannot downlod the files directly. Internet Archive says it doesn't know how to handle them.

db48x commented 7 years ago

Do you see any errors on the network tab of your browser's dev tools? If so, correcting them will probably fix it.

kailledargun commented 7 years ago

Not that I see. Am i missing something?

On Wednesday, November 8, 2017, 5:50:45 PM EST, Daniel Brooks <notifications@github.com> wrote:  

Do you see any errors on the network tab of your browser's dev tools? If so, correcting them will probably fix it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

db48x commented 7 years ago

It's hard to say without taking a look at it myself. Can you put it on line somewhere? If so, I'll be happy to take a look at it.

Do any of the files turn red on the splash screen? If so, then figuring out why it can't download that file is the way forward.

kailledargun commented 7 years ago

Sure. It is at https://webgames.f37ch.com/emularity-master/example_dosbox.html

Only the example is up. I just started trying to attempt it. On Thursday, November 9, 2017, 3:02:27 PM EST, Daniel Brooks notifications@github.com wrote:

It's hard to say without taking a look at it myself. Can you put it on line somewhere? If so, I'll be happy to take a look at it.

Do any of the files turn red on the splash screen? If so, then figuring out why it can't download that file is the way forward.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

db48x commented 7 years ago

Oh, interesting. If you look at the response the server sends for the zip file, it's only 201 bytes long. That's not quite large enough :)

It looks like your HTTP server isn't following the symlink to the actual content; it's just sending the content of the symlink, which is the path to the content on the server's filesystem.

db48x commented 7 years ago

There might be more than one zip file that we have to decompress ourselves (rather than leaving it for MAME to do), so we'll want to be careful not to lose that information. We should also turn the corresponding splash-screen entry red just like we do when we get a network error.

kailledargun commented 7 years ago

Nevermind. It was stupidity. I had tried on a separate server but was having issues with git, hence the reason I know you cannot directly download the gz files. I downloaded the zip file on that server but when i moved to my functional webserver to test out I forgot to move the stinking zip file. Thanks for taking time to try and help me. Sorry to have burned some of that time on not double checking file contents! On Thursday, November 9, 2017, 3:45:58 PM EST, Daniel Brooks notifications@github.com wrote:

Oh, interesting. If you look at the response the server sends for the zip file, it's only 201 bytes long. That's not quite large enough :)

It looks like your HTTP server isn't following the symlink to the actual content; it's just sending the content of the symlink, which is the path to the content on the server's filesystem.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

db48x commented 7 years ago

No worries!