-
-
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
[GetProfiles] DioError [DioErrorType.other]: HttpException: Connection closed before full header was received. #10
Comments
Hello @Cu-Toof , I found the following regarding the "Connection closed..." issue - https://stackoverflow.com/questions/55879550/how-to-fix-httpexception-connection-closed-before-full-header-was-received - a number of the solutions are related to the underlying network and there is no code change that I can make to resolve them. If the problem is related to the I would more expect that applications would have a problem with the response data. I have yet to find a decent XML parser that supports namespaces in Dart. My work-around was to convert the Onvif XML response to JSON and then to Dart objects. This is very memory inefficient for large responses, but until a better XML parser comes around ... The only partial solution I can offer right now is to add a section to the README asking people to list Onvif device models that they know the package works with and those where it doesn't. That way some people will know in advance if their Onvif device is supported. |
Hello @Cu-Toof , I published a new version today - 1.0.0-dev.2 - you can give it a try and see if it solves your issue. |
Hello @Cu-Toof , I was able to identify a bug that was causing this issue with some devices. The new v1.0.2 resolves the issue. |
#32 gives more detail about this issue. |
I use easy_onvif v0.0.15 to connect to a camera IP.
Getting the camera's information is successful but getting profiles is not.
Could you provide me with some solution for this issue? thanks
I receive some answers:
requestData
is too large. Could you provide me with some solution for reducingrequestData
size? thanksThe text was updated successfully, but these errors were encountered: