0

My whole team face this problem in our retailer app API works slowly on mobile network but on Wi-Fi works superb. It is not API problem http package have some kind of issue. please help to rectify this problem as much as possible.

Output:-

E/flutter (25854): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Connection refused E/flutter (25854): #0 IOClient.send (package:http/src/io_client.dart:88:7) E/flutter (25854): E/flutter (25854): #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93:32) E/flutter (25854): E/flutter (25854): #2 _withClient (package:http/http.dart:164:12) E/flutter (25854): E/flutter (25854): #3 _SuperDistributorScreenState.build..... (package:financepe_master/modules/super_distributor/views/super_distributor_screen.dart:581:69) E/flutter (25854): E/flutter (25854):

my whole team team face this problem in our retailer app api works slowly on mobile network but on wifi works superb. it is not api problem http package have some kind of issue. please help to rectify this problem as much as possible.

Harsh Sureja
  • 1,052
  • 1
  • 9
  • 22

1 Answers1

-1

Well, I don't think the problem is from the http package. The error can possibly be from your code.

But you can also try out this other packages dio. It works perfectly well and can be a substitute for the http package.

kenresoft
  • 11
  • 1
  • 4