-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
Data doesn't load if the network is turned on after coming to the chat view (private chat) #2287
Comments
Same behaviour is shown by all the chat screens. |
Great find! Working on that issue is a priority. |
@zulipbot claim |
@zulipbot claim |
@roberthoenig not sure how involved would be to implement this... or more correctly I suspect it will require a lot of rethinking and reworking. |
I've done some heavier debugging on this. Here are the results: TL;DR:To load the data, our code call the React Native Full versionReproductionThis issue can be deterministically reproduced on a development server with the following steps:
If the app was behaving correctly, it would load the new messages from the stream #test and show them. What's happening?Here are the important things going on in the app when following the steps above:
An action
is triggered.
An action
is triggered.
The action The If we try the same thing without previously dis- and reconnecting, the MonitoringTo debug this issue, we need to monitor the activity on the app, the server, and the route in between. The appTo monitor the app network request I chose to print-debug all calls to
The dev serverFor monitoring the dev server, I just looked at the logs it is constantly spitting out. They look like this:
The route in betweenTo see if any traffic is silently sneaking past my eyes, I used Wireshark to monitor all traffic going in and
There is a lot of traffic going on, even on the Loopback Interface. Therefore, I filtered all traffic to see DebuggingLet's reproduce the issue again, but this time with all the monitoring we just discussed.
It returns an empty promise. At the same time, on the server side, the request that got sent by the app does not appear in the logs.
This appears also when the app hasn't previously been dis- and reconnected. Furthermore, this request does On Wireshark, the request that got sent by the app does not appear in the logs. Again, only the Then, nothing interesting happens for a while. After 2-15 minutes, however, the app request is logged. The Miscellaneous trial & errorAfter the above detailed observation of the request flow, I went on trying out some things:
|
I'm running
Maybe first check how it behaves in other RN based chat apps. This works fine for me in other apps. |
Interesting! This actually brings facebook/react-native#6679 close to attention; users there report that it works on Android but not iOS. |
Also, I should have made it more clear that all the debugging I've done was on an Android emulator. |
^^ see the above issue report on React Native. |
Quoting my comment from #3800 (comment):
|
Steps of reproduction:
The data to be displayed on the chat screen will never load. Not even the imageAvatar and the composebox
The text was updated successfully, but these errors were encountered: