-
Notifications
You must be signed in to change notification settings - Fork 83
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
Construct 3 - Cloud Uploading Progress Broken (Percentage Message) #565
Comments
Assigning to Iain, but IIRC not all cloud services actually give a progress, so it may not be fixable for every service... |
Yeah I knew that this was probably not a C3 issue. Either way I think it's a good thing if we keep this one open until all workarounds have been tested out or perhaps Google updates their cloud API. |
I'm using dropbox and it shows 0% all the time as well. |
I can confirm this is working in development and not release. I've checked through and can't find any build related issues, the progress event seems to not be firing. I think this might be related to the service worker intercepting the networking request w3c ServiceWorker issues 1141 and completing it with the fetch API. For reference:
I haven't been able to find a specific chrome bug related to this, just the github issue I linked above. By the sounds of it some slight tweaks to the service worker may solve the issue? That's more @AshleyScirra's realm though. |
Alright, seems the like SW's are being a pain again. Thanks for the heads up @shortercode. |
This sounds like the previous issue I was having where downloading example projects also failed to track progress. I never got to the bottom of that (it was another thing that changed in production), but it sounds like from that w3c thread that it's not really well supported yet to have progress events through a Service Worker. Not sure I can be of much more help than @shortercode . This looks like an appropriate time to add the "difficult" tag... |
Little red label of doom... Status on progress events is not good, they seem to have been tied up in the cancel-able promises proposal. Which was around for 2 years before ironically being cancelled. The new proposal still looks pretty flaky, but it might arrive sometime soon(ish) if observables make it into the spec. I've tried looking into non serviceworker workarounds and I can only find ones for downloads, so that's pretty useless. Best suggestions I have:
|
Assigning to @AshleyScirra for a possible service worker refactor |
I don't think I'll actually get round to a SW refactor any time soon, and on further reflection your patch is probably a pretty straightforward hack to apply until that refactor does happen. So I've changed my mind, @shortercode go ahead and apply your patch to the SW. |
Okay I've merged the change in, should appear in r46 |
The root SW (for editor.construct.net) needs to be updated server-side so note this may not actually sync up with r46. Also there's probably going to be caching issues, I'm not sure when browsers will pick up an updated SW script, especially with CloudFlare's caching... |
I'm pretty sure its the version specific service worker that catches the request, not the root service worker. So we might be in business with a release. |
Our SW setup is kind of a mess, because the version specific SW does not actually intercept any fetch requests at all :P its scope is 'eclipsed' by the root one, which always handles everything on editor.construct.net. The version-specific one only serves to fire an install event (which caches that version), or handle fetches if you directly navigate to the version (e.g. editor.construct.net/r45). None of this is what we intended, but it sort of ends up working anyway by accident. |
No problem if it takes a couple of releases in order to sync up. This is a visual issue and nothing engine breaking so any kind of minor delay is alright in my book. |
Seems to be working for me in r46, look okay to you @TheRealDannyyy ? |
@shortercode it indeed does work now. Thanks a lot for the quick fix! |
Problem description
This is a quick one and probably not even caused by Construct 3 itself.
The uploading percentage found on the bottom-left isn't working, it stays at 0% even though the syncing process is working fine.
Steps to reproduce
Observed result
Construct 3 displays the cloud upload percentage but it stays at 0%.
Expected result
Construct 3 should display the progress from 0 to 100%.
Affected browsers
System details
The text was updated successfully, but these errors were encountered: