Image upload spings to infinity

Describe the issue:

Often when I ass image to the asset field the upload spinner doesn’t stop. It’s a little bit anoying because if you haven’t stored the record, you have to refresh the site to save the record, as you can’t save while it is in this ā€œuploading stateā€ as button is disbled… And when you refresh you loose previous ongoing changes on the record…

I don’t know in which scenario this happens, but happens then and there…

(Optional) Can you provide a link to the item, model, or project in question?

It happens randomly on any record, for example today happened here:
https://opendaq.admin.datocms.com/editor/item_types/RUOELTO5Q6arYEttwibS0A/items/Vm0ZWpS-R86qhY7DaWjMuQ

(Optional) Do you have any sample code you can provide?

N/A

@primoz.rome, do you see any errors in the console or network tab when this happens?

Have you noticed any particular patterns to it at all… like only with certain projects, certain image types, inside certain fields (or media area too?), only at home/at another wifi location…?

Hi @roger.

I will check console next time when it happens and follow up on this.

Have you noticed any particular patterns to it at all… like only with certain projects, certain image types, inside certain fields (or media area too?), only at home/at another wifi location…?

Not at all. Totally random. Happened on different projects in random records… And it happened at home and in the office, both WiFi.

Ok, thank you, and sorry about that! Please do let us know if you manage to catch any errors and/or can reliably reproduce it

This problem keeps turning back to me… If it helps console log:

Log file:

@primoz.rome, from the logs (thank you, they are helpful!), it does look like you are experiencing some intermittent network issues, e.g.:

[Intervention] Slow network is detected. See <URL> for more details. Fallback font will be used while loading: <URL>

Failed to load resource: net::ERR_NETWORK_CHANGED

Failed to load resource: net::ERR_INTERNET_DISCONNECTED

Failed to load resource: net::ERR_INTERNET_DISCONNECTED (several more of these)

Where in the world are you located and how’s your wifi setup? This can happen if the wifi connection to your laptop isn’t very stable (do other sites keep working?), or if there’s some regional network issue between your region to our data centers (in Ireland).

If that is the underlying cause, I think our options are unfortunately somewhat limited (not much we can do about the network)… but if you haven’t already tried, it might be worth considering:

  • A different wifi adapter (like an external USB one), especially if your laptop is older
  • Tethering from your phone for testing (because that goes through the cell phone carrier’s own ISP instead of your home or office internet connection)
  • Using a VPN to access Dato, so it tunnels your traffic through a different region (or turning off the VPN if you’re already using one)

The symptoms you’re experiencing do seem to match up with intermittent network issues… we haven’t heard of this issue from other customers, so if it more widespread and/or a bug, it should be affecting a lot more users. (Granted, we could probably do a better job of handling unexpected network blips, but that is not an easy thing to handle in such a complex app…)

Sorry, I wish I had a simpler fix for you! Maybe one of the workarounds can help…?

PS macOS has its own system-wide console that you can use to record system-level events like network drops and DNS issues and such, to help troubleshoot:

If it’s really a connection issue, you should see some network errors in the system log around the same time the upload crashes.

Hi Roger, thanks for detailed reply.

It does seem the WiFi connection is the problem to this issue.

I have tried and seems like it only comes up with WiFi and we do have some WiFi connection problems, especially on Macs…

Thanks for the update, @primoz.rome. Sorry to hear about the wifi problems… those are never fun! Maybe a USB wifi adapter will help…?

Sometimes it can help to split up the 5 GHz and 2.4 GHz into two different SSIDs, if your router supports that and your IT dept allows it. 2.4 GHz has better stability and wall penetration, while 5 GHz can be faster but shorter range. Splitting them up can help you maintain a more stable connection to one or the other so your system won’t keep trying to auto-switch between them when the signal fluctuates.

If you have other 2.4 GHz things in your office (like microwaves or walkie talkies/intercoms or old landlines cordless phones) that can interfere with the WiFi too and cause blips. Depends on your country though (since spectrum allocations vary by country).

Really depends on your wifi and Mac hardware though. Personally I hate WiFi and try to hardwire everything whenever possible… a CAT6 cable will always be better than the latest Wifi 9000 ABCDEx Mega MIMO or whatever, IMHO :joy: Though of course that’s not always practical in every setting…

Good luck!

1 Like