Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

compass_app: failure to connect to remote/mock auth server in staging mode #2563

Open
githubmonkey opened this issue Jan 14, 2025 · 0 comments

Comments

@githubmonkey
Copy link

When running flutter run --target lib/main_staging.dart the app doesn't authenticate the mock user against the mock auth server which is running on localhost:8080

From the log:

[LoginViewModel] Login failed! SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 35158
[AuthRepositoryRemote] Error logging in: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 52772
[LoginViewModel] Login failed! SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 52772
[AuthRepositoryRemote] Error logging in: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 52782
[LoginViewModel] Login failed! SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 52782
[AuthRepositoryRemote] Error logging in: SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 55032
[LoginViewModel] Login failed! SocketException: Connection refused (OS Error: Connection refused, errno = 111), address = localhost, port = 55032
D/EGL_emulation( 3946): app_time_stats: avg=75.52ms min=2.63ms max=2734.61ms count=38

I verified that in AuthApiClient the correct host/port gets passed to HttpClient but it appears that later the port is ignored and HttpClient attempts to post to a random port.

final request = await client.post(_host, _port, '/#');

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant