P5.js-web-editor: Download of zip file fails to complete

Created on 18 Aug 2019  路  12Comments  路  Source: processing/p5.js-web-editor

Nature of issue?

  • Found a bug

Details about the bug:

  • Web browser and version: Chrome: 76.0.3809.100, Firefox: 67.0
  • Operating System: Mac, Windows
  • Steps to reproduce this bug:
    Use this sketch as an example, https://editor.p5js.org/FRESHPRNCE/sketches/S1Kqxl-HQ
    Go to "File" in the menu bar and click "Download" and it will stop downloading at about ~676kb, hang there for a few seconds and then fail. Attached is an image of the errors in the console.

** We used the online editor for a high school program over the summer and 15 out of the 54 student projects were unable to be downloaded. So I have more links I could send but all the errors seem to be the same from sketch to sketch.

Screenshot 2019-08-17 17 25 52

good first issue help wanted high bug

Most helpful comment

Can I try doing this?

All 12 comments

thanks for reporting this bug! i'm able to reproduce. not sure what's going on here but i can do some digging. my suspicion is that it has to do with downloading all of the assets from s3, but it's unclear how exactly that is causing a bug.

Thank you for looking into this :)

Can I try this?

I just found the problem for the error, its an action without dispatching something & I don't think it should be the action if its not dispatching something so it should better be a function.
here i am talking about this exportProjectAsZip action in the projectAction.
So in my mind there are two ways to solve this either by passing type null so that the default reducer will handle it and the other one to remove the exportProjectAsZip from action
or if you can tell me any other way @catarak

Note:- this will only solve the error shown above in the pic . But not the downloading issue

if you want I can generate a separate issue first describing the action error and then sent a pr by resolving the error @catarak

My instinct here is that the bug you found is a red herring鈥擨 think maybe the server is returning an error, and the front end is not handling it properly?

i was able to get rid of that error, but running the server locally, it seems like this is silently failing, as there are no errors from the server, either. it seems like it's getting stuck somewhere and just hanging!

Can I try doing this?

https://www-users.york.ac.uk/~tas509/p5Downloads.png

I get this, failed downloads... My p5js account is full and so I was trying to download a lot of projects. Lots of them fail. Like this one for example

https://editor.p5js.org/tom.smith/sketches/rG16mHfhv

Thanks for the additional information!

Hey @catarak ! As a beginner, I would like to give this a try !

I tried to replicate the error but it seems to be working for me. I think this has to be the server issue of S3. @catarak Would appreciate your views about this :smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

catarak picture catarak  路  5Comments

byfelipesanchez picture byfelipesanchez  路  4Comments

runemadsen picture runemadsen  路  5Comments

aparrish picture aparrish  路  5Comments

zeyaoli picture zeyaoli  路  4Comments