Skip to content
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

[BUG] Emulator Cannot Communicate with Servers After Re-building the App #1926

Open
1 of 5 tasks
Kaz-ookid opened this issue Jun 12, 2024 · 0 comments
Open
1 of 5 tasks
Labels
bug Something isn't working fe2-android

Comments

@Kaz-ookid
Copy link
Contributor

Kaz-ookid commented Jun 12, 2024

Description (Actual behavior)

When using an emulator on Android Studio and joining/creating a LAO , we can use the app freely : join roll calls, send chirps, coins, etc... When going to Invite section, the server address it the actual one of the server.

If you re-build the app using Run 'app' button (basically just running the App), you can reconnect to the LAO, but in the invite section the server address has changed to "ws://10.0.2.2:9000/client". Also, you are not receiving any updates for the LAO (like new chirps in the feed), and can't send anything (like sending coins, chirp, etc) : it always results in a timeout.

This issue might be normal given the specifications of the app, but since I am unaware of these, I prefer to document this bug. Maybe it highlights an actual problem with the app. Also, this issue is only happening since recently, I'd say a month from now.

Expected behavior

When re-running the App on an emulator, previous LAOs should be usable : server should communicate updates, and let us send updates.

How to reproduce

  1. Run the App in an emulator instance
  2. Create a LAO, or join one, and use it
  3. Go to Invite section and see the right server address
  4. Re-run the App (rebuilding it), for example by using the dedicated Run button in the IDE.
  5. Go to Invite section, see the wrong address : "ws://10.0.2.2:9000/client"
  6. Try so use the app through the LAO : send chirps, see new chirps coming in, send coins...

Version & Environment

This bug was reproduced on:
e47fa9a

Front-ends:
  • [] Fe1-Web
  • Fe2-Android Emulator
  • Not applicable
Back-ends:
  • Be1-Go
  • Be2-Scala
  • Not applicable
Environment (as applicable):
  • Device: [e.g. Pixel 5 emulator on Mac]
  • OS: [e.g. Android 11, Windows 10]
  • Browser: [e.g. Chrome 57]

Impact

Very high : slows down testing and dev drastically... Need to re-create LAOs, rejoin, re-run roll calls, re-scan/input manually after EACH changes to test the app again.

Possible root cause

No idea

Screenshots

image

@Kaz-ookid Kaz-ookid added bug Something isn't working fe2-android labels Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fe2-android
Projects
None yet
Development

No branches or pull requests

1 participant