สัญญาณขาดหายบางส่วนshare-external
Bug: Error screen "TypeError / Load Failed."
1

WhatsApp flows started to sporadically show error screens saying:

TypeError
Load Failed

See also screenshot attached.

This is new behavior of WhatsApp Flows since a couple of days.

It occurs sporadically with any flow upon clicking form components with a data-exchange action, for example selecting an item in a DropDown component. Clicking on the flow back button and then repeating the last action will usually will make the Flow work again.

Lars
ถามแล้ว ประมาณหนึ่งเดือนที่แล้ว
Lars

I found a way to reliably reproduce it. It appears to me as a bug/malfunctioning of the Flows API server.

It's very important to notice that same symptoms also frequently reproduce, even if WhatsApp stays in foreground.

Best to be reproduced with iOS.

  1. Click a UI component which has a data-exchange action
  2. My server gives a very fast response to the request, in a couple of milliseconds (I see that in my logs)
  3. Open the iOS app switch quickly (swipe from bottom to top) and select another app
  4. WhatsApp backgrounds
  5. WhatsApp has now 10 seconds left to finish any pending operation, such as the pending network request for the data-exchange action
  6. Wait at least 10 seconds in your other app
  7. Navigate back to WhatsApp and notice the "Type Error / Load Failed." screen.

Again, because the reproduction is an edge case, BUT the same symptoms also occur frequently while WhatsApp stays in foreground:

The problem seems to be with the Flows API which is supposed to give a server response back to the WhatsApp client app. But either it times out (as presumably described above) or it returns an error. As the WhatsApp client app doesn't give any other details, I can only speculate about the reasons here. But it seems evident that the meta Whatsapp Flow API server is misbehaving here.

To my opinion the WhatsApp client should NOT navigate away from the current screen to this error screen. Instead it should show a regular flow error toast at the bottom of the screen, asking the user to try again.

19 ตุลาคม เวลา 13:37 น.
Lars

And I just had another case of that "TypeError / Load Failed." screen, likely with another root cause however. It appeared instantaneously when I clicked a drop down item with a data-exchange action. There didn't seem to have any network communication happened at all, given the screen showed instantaneous. My assumption is a network connection error client side in WhatsApp itself.

I suggest to add request retry logic to all client-server communication in flows in case it's not yet implemented to provide a better UX to WhatsApp Flows users.

21 ตุลาคม เวลา 05:59 น.
คำตอบที่เลือก
1
  • trying to get attention to this bug -
22 ตุลาคม เวลา 08:35 น.
Lars
Adelina

Hi Lars, our team is currently looking into this issue. Thank you so much for raising it.

29 ตุลาคม เวลา 04:02 น.
Lars

Thanks Adelina, I am looking forward to seeing WhatsApp Flows to handle these presumable network problems much better for the user.

3 พฤศจิกายน เวลา 08:28 น.