-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
DioError [DioErrorType.other]: HttpException: Connection closed before full header was received #6
Comments
@wmhseir3, the latest PR #7 is an attempt to address this issue. I found the following info that speaks broadly to the issue:
Though I don't think either necessarily applies here. I did see that I was creating a new Dio instance for every SOAP request. With the latest changes, that is no longer the case. Let me know if this resolves things for you. |
Btw, easy_onvif 0.0.11 has now been published. |
hi, the 0.0.11 won't get through with this issue the same DioError appears as followings: I tried to add the timeout lines as followings but still the same. Any other workaround? |
@wmhseir3, I think in this case I'd need a minimal code sample to try to replicate the issue. From what I've read about the problem it may be related to the size of the SOAP response. Without being able to replicate this any further changes I make are purely guess work. Any chance you can provide a small sample of your code? |
hi, just got your reply. My sample code is simple. I just used the flutter new project as in the Android Studio. And add changes with the following codes. This issue is just occured with the "await onvif.initialize();" line. Can you please send me an email ([email protected]) privately. I can then advise how you can reproduce the issue remotely in your end easily. Thanks. @OverRide _initialize() async { |
@wmhseir3 , thanks for this. I created a flutter app that connects to me to my main test device and everything worked fine. I then changed to connect to an alternate device and I'm starting to see some errors. So far, not the same as you provided, but I see this a progress :-) |
hi, like to see your progress next. Let me know, if you are available to see my test device. |
This comment has been minimized.
This comment has been minimized.
Please see my recent comment at #3 |
I tried 0.12.0 with the flutter_model example. It's still getting the HttpException: Connection closed before full header was received" with the new 2nd nvt. I would like to offer you the steps for you to test with this nvt remotely in your end. Can you please send email to me @[email protected]? |
hi, I have recently obtained one onvif nvt which is working smoothly using the top download onvif app from Google play.
However, this new nvt can not even run the "await onvif.initialize();" The DioError messages captured are as followings. I am suspecting the Dio plugin may have compatibility issues as with easyonvif. As issue #3/4 and this issue are all related with it. Can you please change the Dio to else one which might help solving these issues?
E/flutter (13446): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Exception: DioError [DioErrorType.other]: HttpException: Connection closed before full header was received, uri = http://192.168.1.106:8000/onvif/device_service
E/flutter (13446): #0 DioMixin.assureDioError (package:dio/src/dio_mixin.dart:819:20)
E/flutter (13446): #1 DioMixin._dispatchRequest (package:dio/src/dio_mixin.dart:678:13)
E/flutter (13446):
E/flutter (13446): #2 DioMixin.fetch.. (package:dio/src/dio_mixin.dart)
E/flutter (13446):
E/flutter (13446):
E/flutter (13446): #0 Soap.send (package:easy_onvif/src/soap.dart:34:7)
E/flutter (13446):
E/flutter (13446): #1 Soap.retrieveEnvlope (package:easy_onvif/src/soap.dart:43:26)
E/flutter (13446):
E/flutter (13446): #2 DeviceManagement.getSystemDateAndTime (package:easy_onvif/src/deviceManagement.dart:145:22)
E/flutter (13446):
E/flutter (13446): #3 Onvif.initialize (package:easy_onvif/src/onvif.dart:33:22)
E/flutter (13446):
E/flutter (13446): #4 _MyHomePageState._initialize (package:testeasyonvif/main.dart:79:5)
The text was updated successfully, but these errors were encountered: