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

How to solve this problem #56349

Closed
manimal001 opened this issue Jul 30, 2024 · 2 comments
Closed

How to solve this problem #56349

manimal001 opened this issue Jul 30, 2024 · 2 comments
Labels
closed-as-intended Closed as the reported issue is expected behavior

Comments

@manimal001
Copy link

E/flutter ( 8322): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Connection timed out
E/flutter ( 8322): #0 IOClient.send (package:http/src/io_client.dart:94:7)
E/flutter ( 8322):
E/flutter ( 8322): #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
E/flutter ( 8322):
E/flutter ( 8322): #2 RemotePopularCategoryService.get (package:my_grocery/service/remote_service/remote_popular_category_service.dart:9:20)
E/flutter ( 8322):
E/flutter ( 8322): #3 HomeController.getPopularCategories (package:my_grocery/controller/home_controller.dart:40:20)
E/flutter ( 8322):
E/flutter ( 8322):
E/flutter ( 8322): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Connection timed out
E/flutter ( 8322): #0 IOClient.send (package:http/src/io_client.dart:94:7)
E/flutter ( 8322):
E/flutter ( 8322): #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32)
E/flutter ( 8322):
E/flutter ( 8322): #2 RemoteBannerService.get (package:my_grocery/service/remote_service/remote_banner_service.dart:9:20)
E/flutter ( 8322):
E/flutter ( 8322): #3 HomeController.getAdBanners (package:my_grocery/controller/home_controller.dart:28:20)
E/flutter ( 8322):
E/flutter ( 8322):

@dart-github-bot
Copy link
Collaborator

Summary: The user is experiencing a "Connection timed out" error when making HTTP requests using the http package in their Flutter application. The error occurs during calls to RemotePopularCategoryService.get and RemoteBannerService.get, suggesting a network connectivity issue or a problem with the server being accessed.

@dart-github-bot dart-github-bot added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jul 30, 2024
@a-siva a-siva added the closed-as-intended Closed as the reported issue is expected behavior label Jul 30, 2024
@a-siva
Copy link
Contributor

a-siva commented Jul 30, 2024

@manimal001 it appears that the server you are trying to connect to from the application is not responding to your request. You need to first figure if the server is up and functional, you could do that by pinging the server or trying the same http request from a browser to see if that is functional.

From the exception trace you have provided it does not appear to be a problem with Flutter or Dart.

@a-siva a-siva closed this as completed Jul 30, 2024
@devoncarew devoncarew removed area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) triage-automation See https://github.com/dart-lang/ecosystem/tree/main/pkgs/sdk_triage_bot. labels Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-as-intended Closed as the reported issue is expected behavior
Projects
None yet
Development

No branches or pull requests

4 participants