dart-lang / http

A composable API for making HTTP requests in Dart.
https://pub.dev/packages/http
BSD 3-Clause "New" or "Revised" License
1.03k stars 358 forks source link

Http package refused connection on mobile network many time but on wifi works fine after updating http package #892

Open ankittripathi4494 opened 1 year ago

ankittripathi4494 commented 1 year ago

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):

ankittripathi4494 commented 1 year ago

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.

mittalsam98 commented 1 year ago

I was also facing same issue @ankittripathi786 (working fine on wifi but not getting anything on mobile data), did u find any solution?

ankittripathi4494 commented 1 year ago

I was also facing same issue @ankittripathi786 (working fine on wifi but not getting anything on mobile data), did u find any solution?

No buddy... Dio and get also facing same issues

ankittripathi4494 commented 1 year ago

I was also facing same issue @ankittripathi786 (working fine on wifi but not getting anything on mobile data), did u find any solution?

No buddy... Dio and get also facing same issues

I tried all of them

ankxz commented 1 year ago

Did someone find any solution?

ankittripathi4494 commented 1 year ago

No buddy this problem from Google side http package is problem

aliaafreen commented 1 year ago

have anyone got any solution about this?