Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

the loading indicator showing with message "please wait while the application is re-connecting #1165

Closed
Abdghali13 opened this issue Mar 12, 2023 · 1 comment

Comments

@Abdghali13
Copy link

I have an issue with running the flet package on Flutter app ,Although the python script is running on the same port .
any help with that ?

Restarted application in 3,774ms.
flutter: Page build: page
flutter: Page theme: ThemeMode.system
flutter: Page fonts build: page
flutter: MeterialApp.router build: page
flutter: currentConfiguration
flutter: Page navigator build: page
flutter: _buildNavigator build
flutter: Page media build
flutter: New page size: Size(393.0, 852.0)
flutter: Page brightness did not change.
flutter: Route changed to: /
flutter: Registering web client with route: /
flutter: currentConfiguration
flutter: Connecting to Flet server http://localhost:8550...
flutter: Connecting to WebSocket server ws://localhost:8550/ws...
flutter: currentConfiguration
flutter: registerWebClientInternal
flutter: Page build: page
flutter: Page theme: ThemeMode.system
flutter: Page fonts build: page
flutter: MeterialApp.router build: page
flutter: Page navigator build: page
flutter: _buildNavigator build
flutter: Page size did not change.
flutter: Page brightness did not change.
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 53374
#0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:694:35)
#1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1855:26)
#2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
#3 Socket._startConnect (dart:io-patch/socket_patch.dart:2078:22)
#4 Socket.startConnect (dart:io/socket.dart:763:21)
#5 _ConnectionTarget.connect (dart:_http/http_impl.dart:2466:20)
#6 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2906:12)
#7 _HttpClient._getConnection (dart:_http/http_impl.dart:2911:12)
#8 _HttpClient._openUrl (dart:_http/http_impl.dart:2766:12)
#9 _HttpClient.openUrl (dart:_http/http_impl.dart:2604:7)
#10 _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1021:42)
#11 WebSocket.connect (dart:_http/websocket.dart:320:22)
#12 new<…>
flutter: WebSocket stream error WebSocketChannelException: WebSocketChannelException: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 53374
flutter: WebSocket stream closed
flutter: Reconnect in 1 seconds
flutter: Page build: page
flutter: Page theme: ThemeMode.system
flutter: Page fonts build: page
flutter: MeterialApp.router build: page
flutter: Page navigator build: page
flutter: _buildNavigator build
flutter: Connecting to Flet server http://localhost:8550...
flutter: Connecting to WebSocket server ws://localhost:8550/ws...
flutter: registerWebClientInternal
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 53391
#0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:694:35)
#1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1855:26)
#2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
#3 Socket._startConnect (dart:io-patch/socket_patch.dart:2078:22)
#4 Socket.startConnect (dart:io/socket.dart:763:21)
#5 _ConnectionTarget.connect (dart:_http/http_impl.dart:2466:20)
#6 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2906:12)
#7 _HttpClient._getConnection (dart:_http/http_impl.dart:2911:12)
#8 _HttpClient._openUrl (dart:_http/http_impl.dart:2766:12)
#9 _HttpClient.openUrl (dart:_http/http_impl.dart:2604:7)
#10 _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1021:42)
#11 WebSocket.connect (dart:_http/websocket.dart:320:22)
#12 new<…>
flutter: WebSocket stream error WebSocketChannelException: WebSocketChannelException: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 53391
flutter: WebSocket stream closed
flutter: Reconnect in 1 seconds
flutter: Connecting to Flet server http://localhost:8550...
flutter: Connecting to WebSocket server ws://localhost:8550/ws...
flutter: registerWebClientInternal
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 53407
#0 _NativeSocket.startConnect (dart:io-patch/socket_patch.dart:694:35)
#1 _RawSocket.startConnect (dart:io-patch/socket_patch.dart:1855:26)
#2 RawSocket.startConnect (dart:io-patch/socket_patch.dart:27:23)
#3 Socket._startConnect (dart:io-patch/socket_patch.dart:2078:22)
#4 Socket.startConnect (dart:io/socket.dart:763:21)
#5 _ConnectionTarget.connect (dart:_http/http_impl.dart:2466:20)
#6 _HttpClient._getConnection.connect (dart:_http/http_impl.dart:2906:12)
#7 _HttpClient._getConnection (dart:_http/http_impl.dart:2911:12)
#8 _HttpClient._openUrl (dart:_http/http_impl.dart:2766:12)
#9 _HttpClient.openUrl (dart:_http/http_impl.dart:2604:7)
#10 _WebSocketImpl.connect (dart:_http/websocket_impl.dart:1021:42)
#11 WebSocket.connect (dart:_http/websocket.dart:320:22)
#12 new<…>
flutter: WebSocket stream error WebSocketChannelException: WebSocketChannelException: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = localhost, port = 53407
flutter: WebSocket stream closed
flutter: Reconnect in 1 seconds
flutter: Connecting to Flet server http://localhost:8550...
flutter: Connecting to WebSocket server ws://localhost:8550/ws...
flutter: registerWebClientInternal

@Abdghali13 Abdghali13 changed the title the loading indicator showing without message "please wait while the application is re-connecting the loading indicator showing with message "please wait while the application is re-connecting Mar 12, 2023
@moluopro
Copy link

Me too !!! And the code in the documentation of https://pub.dev/packages/flet is also obsolete, the constructor of the FletApp class is missing the assetsDir parameter.

@flet-dev flet-dev locked and limited conversation to collaborators Mar 12, 2023
@FeodorFitsner FeodorFitsner converted this issue into discussion #1168 Mar 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants